|
|
Metadata of an entity instance. More...
#include <RobotAPI/libraries/armem/core/base/EntityInstanceBase.h>
Public Member Functions | |
| void | access () const |
| Called whenever the entity instance this metadata belongs to is accessed (e.g. queried). | |
| Time | lastAccessedTime () const |
| bool | operator!= (const EntityInstanceMetadata &other) const |
| bool | operator== (const EntityInstanceMetadata &other) const |
| void | setLastAccessedTime (const Time &time) const |
| virtual | ~EntityInstanceMetadata ()=default |
Public Attributes | |
| Time | arrivedTime = Time::Invalid() |
| Time when this value has arrived at the memory. | |
| float | confidence = 1.0 |
| An optional confidence, may be used for things like decay. | |
| RelaxedAtomic< std::int64_t > | lastAccessedTimeMicroSeconds |
| An optional value indicating the time of last access, in microseconds since the epoch. | |
| RelaxedAtomic< unsigned long > | numAccessed {0} |
| A counter how often the instance has been accessed. | |
| std::string | origin = "undefinied" |
| Indicates the source of the instance e.g. from a specific LTM. | |
| Time | referencedTime = Time::Invalid() |
| Time this instance refers to. | |
| Time | sentTime = Time::Invalid() |
| Time when this value was sent to the memory. | |
Metadata of an entity instance.
|
virtualdefault |
| void access | ( | ) | const |
Called whenever the entity instance this metadata belongs to is accessed (e.g. queried).
|
inline |
|
inline |
| bool operator== | ( | const EntityInstanceMetadata & | other | ) | const |
|
inline |
| Time arrivedTime = Time::Invalid() |
Time when this value has arrived at the memory.
| float confidence = 1.0 |
An optional confidence, may be used for things like decay.
| RelaxedAtomic<std::int64_t> lastAccessedTimeMicroSeconds |
An optional value indicating the time of last access, in microseconds since the epoch.
Stored as an integer rather than a Time because Time holds a std::string, and two query threads assigning one concurrently is a use-after-free waiting to happen. Use lastAccessedTime().
| RelaxedAtomic<unsigned long> numAccessed {0} |
A counter how often the instance has been accessed.
| std::string origin = "undefinied" |
Indicates the source of the instance e.g. from a specific LTM.
| Time referencedTime = Time::Invalid() |
Time this instance refers to.
For example, the physical time point when an image was captured. If the image is processed, the result should have the same referencedTime as the image.
| Time sentTime = Time::Invalid() |
Time when this value was sent to the memory.