Skip to content
Snippets Groups Projects
Commit 2c4ff64c authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix formatting, update doc

parent 636b0c7a
No related branches found
No related tags found
1 merge request!330Rename time created
This commit is part of merge request !330. Comments created here will be created in the context of that merge request.
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment