7 #ifndef __IPTAGGEDOBJECT_HPP__
8 #define __IPTAGGEDOBJECT_HPP__
61 typedef unsigned int Tag;
91 return (comparison_tag == tag_) ?
false :
true;
TaggedObject()
Constructor.
Index cache_priority_
The index indicating the cache priority for this TaggedObject.
Slight Variation of the Observer Design Pattern (Subject part).
Storing the reference count of all the smart pointers that currently reference it.
int Index
Type of all indices of vectors, matrices etc.
unsigned int Tag
Type for the Tag values.
Tag tag_
The tag indicating the current state of the object.
bool HasChanged(const Tag comparison_tag) const
Users of TaggedObjects call this to check if the object HasChanged since they last updated their own ...
Tag GetTag() const
Users of TaggedObjects call this to update their own internal tags every time they perform the expens...
virtual ~TaggedObject()
Destructor.