Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbDefaultTypeIdGenerator Class Reference

The default generator of unique type identifiers (a utility class). More...

#include <CdbType2Id.hh>

List of all members.

Static Public Member Functions

unsigned int next ()
 Produce the next unique number.


Detailed Description

The default generator of unique type identifiers (a utility class).

The generator will produce unsigned integer numbers starting with 0 every time the CdbDefaultTypeIdGenerator::next() method is invoked.

The class is used in the unique mapping scheme between C++ types and numbers.

IMPORTANT DESIGN NOTE:

That the mapping can't be persistent or it can't be used in any way beyong the lifespan of a process.

See also:
class CdbType2Id

Definition at line 23 of file CdbType2Id.hh.


Member Function Documentation

unsigned int CdbDefaultTypeIdGenerator::next   [inline, static]
 

Produce the next unique number.

The first time the method gets called it will produce 0.

Definition at line 31 of file CdbType2Id.hh.


The documentation for this class was generated from the following file:
Generated on Mon Dec 5 18:22:21 2005 for CDB by doxygen1.3-rc3