VISH  0.2
Public Member Functions | Static Public Member Functions
MemCore::Ageable Class Reference

Base class for objects which change from time to time. More...

#include </home/werner/origo/vish/memcore/Ageable.hpp>

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

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.


Member Function Documentation

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.

Examples:
stockvish.cpp.

The documentation for this class was generated from the following files: