Public Member Functions | Static Public Member Functions

Ageable Class Reference

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

#include <memcore/Ageable.hpp>

Inheritance diagram for Ageable:
Creature CreatorBase< Domain > CreatorBase< RefType > Creator< RefType >

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& 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 Ageable::touch (  )  throw () [inline]

Mark the current object as being modified "now".

The global time counter is increased by this operation.


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