Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/typed-counter.hpp"
Provide type-IDs for a specific context.
This facility allows to access a numeric ID for each given distinct type. Type-IDs may be used e.g. for dispatcher tables or for custom allocators. The type-IDs generated here are not completely global though. Rather, they are tied to a specific type context, e.g. a class implementing a custom allocator. These typed contexts are considered to be orthogonal and independent of each other.
Definition at line 95 of file typed-counter.hpp.
Static Public Member Functions | |
static IxID | newTypeID (IxID &typeID) |
Classes | |
class | ID |
type-ID More... | |
Static Private Attributes | |
static IxID | lastGeneratedTypeID |
storage for the type-ID generation mechanism | |