Public Member Functions | |
ObjectWithInstanceID () | |
int | id () const |
Static Private Member Functions | |
static int & | nextID () |
Private Attributes | |
int | id_ |
By templating on the derived type, we can give each derived type its own sequence of ID numbers.
Definition at line 51 of file SundanceObjectWithInstanceID.hpp.
Sundance::ObjectWithInstanceID< T >::ObjectWithInstanceID | ( | ) | [inline] |
Empty ctor will assign ID at construction time
Definition at line 55 of file SundanceObjectWithInstanceID.hpp.
int Sundance::ObjectWithInstanceID< T >::id | ( | ) | const [inline] |
Return this object's ID number
Definition at line 58 of file SundanceObjectWithInstanceID.hpp.
static int& Sundance::ObjectWithInstanceID< T >::nextID | ( | ) | [inline, static, private] |
Generate the next ID in the sequence
Definition at line 62 of file SundanceObjectWithInstanceID.hpp.
int Sundance::ObjectWithInstanceID< T >::id_ [private] |
Definition at line 65 of file SundanceObjectWithInstanceID.hpp.
Referenced by Sundance::ObjectWithInstanceID< MeshBase >::id().