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

CdbType2Id< T, GENERATOR > Class Template Reference

Translate the type into its identifier. More...

#include <CdbType2Id.hh>

List of all members.

Public Types

typedef T type
 The type to be mapped to its id.


Static Public Member Functions

unsigned int id ()
 Get the identifier corresponding to the type.


Detailed Description

template<class T, class GENERATOR = CdbDefaultTypeIdGenerator>
class CdbType2Id< T, GENERATOR >

Translate the type into its identifier.

This class will use the specified (or the default) generator of identifiers. A reson why we may want to parameterize the current class with different generators is that we may want to have a better control over actual number of identifiers associated with transient types. For example, we may consider using predefined type numbers rather than automatically generated ones. Or, we may want to have two independent collections of transient types whose identifiers both start with 0.

Definition at line 50 of file CdbType2Id.hh.


Member Typedef Documentation

template<class T, class GENERATOR = CdbDefaultTypeIdGenerator>
typedef T CdbType2Id< T, GENERATOR >::type
 

The type to be mapped to its id.

Definition at line 56 of file CdbType2Id.hh.


Member Function Documentation

template<class T, class GENERATOR = CdbDefaultTypeIdGenerator>
unsigned int CdbType2Id< T, GENERATOR >::id   [inline, static]
 

Get the identifier corresponding to the type.

Definition at line 62 of file CdbType2Id.hh.

Referenced by main(), and CdbObjectTranslator::transient().


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