#include <coherence/util/Versionable.hpp>
Inherits Object.
Public Types | |
typedef spec::Handle | Handle |
Versionable Handle definition. | |
typedef spec::View | View |
Versionable View definition. | |
typedef spec::Holder | Holder |
Versionable Holder definition. | |
Public Member Functions | |
virtual Comparable::View | getVersionIndicator () const =0 |
Get the version indicator for this object. | |
virtual void | incrementVersion ()=0 |
Update the version to the next logical version indicator. |
virtual Comparable::View getVersionIndicator | ( | ) | const [pure virtual] |
Get the version indicator for this object.
The version indicator should be an immutable object or one treated as an immutable, which is to say that after the version is incremented, the previous version's indicator reference will never be returned again.
virtual void incrementVersion | ( | ) | [pure virtual] |
Update the version to the next logical version indicator.
UnsupportedOperationException | if the object is immutable or if the object does not know how to increment its own version indicator |