InstanceId.h File Reference
#include <iosfwd>
Include dependency graph for InstanceId.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InstanceId< Class >
 

Macros

#define InstanceIdDefinitions(Class, pfx)
 convenience macro to instantiate Class-specific stuff in .cc files More...
 

Functions

template<class Class >
std::ostream & operator<< (std::ostream &os, const InstanceId< Class > &id)
 print the id More...
 

Macro Definition Documentation

#define InstanceIdDefinitions (   Class,
  pfx 
)
Value:
template<> const char * \
return pfx; \
} \
template<> std::ostream & \
InstanceId<Class>::print(std::ostream &os) const { \
return os << pfx << value; \
} \
template<> void \
InstanceId<Class>::change() { \
static InstanceId<Class>::Value Last = 0; \
value = ++Last ? Last : ++Last; \
}
std::ostream & print(std::ostream &) const
prints class-pecific prefix followed by ID value;
unsigned int Value
id storage type;
Definition: InstanceId.h:26
const char * prefix() const
returns the class-pecific prefix

Definition at line 50 of file InstanceId.h.

Function Documentation

template<class Class >
std::ostream& operator<< ( std::ostream &  os,
const InstanceId< Class > &  id 
)
inline

Definition at line 68 of file InstanceId.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors