VISH
0.2
|
Base class for objects which change from time to time. More...
#include </home/werner/origo/vish/memcore/Ageable.hpp>
Base class for objects which change from time to time.
Upon touching such "ageable" objects, a change is indicated. The "age" is not related to physical time, but just an integer number. This number is a global counter that is increased when any object is touched.
static const Ageable& MemCore::Ageable::InfinitelyOld | ( | ) | throw () [inline, static] |
Return a time that is infinitely in the past (well, sort of).
It is a reference to a static members whose time value is zero, means it's the oldest of all objects (smallest age).
time_t MemCore::Ageable::touch | ( | ) | throw () [inline] |
Mark the current object as being modified "now".
The global time counter is increased by this operation.