Skip to content
Snippets Groups Projects

Rename time created

Merged Fabian Tërnava requested to merge armem/dev into master
1 file
+ 25
9
Compare changes
  • Side-by-side
  • Inline
@@ -11,9 +11,9 @@ namespace armarx::armem::base
struct Metadata
{
virtual void access() const = 0;
virtual ~Metadata() = default;
virtual void access() const = 0;
};
/**
@@ -21,12 +21,20 @@ namespace armarx::armem::base
*/
struct NoData : public Metadata
{
void access() const final {}
virtual ~NoData() = default;
bool operator==(const NoData& other) { return true; }
bool operator!=(const NoData& other) { return false;}
void access() const final
{
}
bool operator==(const NoData& other)
{
return true;
}
bool operator!=(const NoData& other)
{
return false;
}
};
@@ -35,8 +43,16 @@ namespace armarx::armem::base
*/
struct EntityInstanceMetadata : public Metadata
{
/// Time when this value was created.
///
/**
* @brief 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 referencedTime = Time::Invalid();
/// Time when this value was sent to the memory.
Time sentTime = Time::Invalid();
/// Time when this value has arrived at the memory.
@@ -51,10 +67,10 @@ namespace armarx::armem::base
/// A counter how often the instance has been accessed
mutable unsigned long accessed = 0;
void access() const final;
virtual ~EntityInstanceMetadata() = default;
void access() const final;
bool operator==(const EntityInstanceMetadata& other) const;
inline bool operator!=(const EntityInstanceMetadata& other) const
{
Loading