![]() |
Lumiera 0.pre.04~rc.1
»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 86 of file typed-counter.hpp.
Classes | |
| class | ID |
| type-ID More... | |
Static Public Member Functions | |
| static IxID | newTypeID (IxID &typeID) |
Static Private Attributes | |
| static IxID | lastGeneratedTypeID |
| storage for the type-ID generation mechanism | |
Definition at line 92 of file typed-counter.hpp.
References TypedContext< CX >::lastGeneratedTypeID.
Referenced by TypedContext< CX >::ID< TY >::get().
Here is the caller graph for this function:
|
staticprivate |
storage for the type-ID generation mechanism
Definition at line 88 of file typed-counter.hpp.
Referenced by TypedContext< CX >::newTypeID().
Collaboration diagram for TypedContext< CX >: