Jpp
17.1.0
the software that should make you happy
|
Auxiliary class for a fixed group of objects. More...
#include <JGroup.hh>
Public Member Functions | |
const T & | operator() (const int index) const |
Get object at given index in group. More... | |
int | operator() (const T &object) const |
Get index of given objec in group. More... | |
Static Public Member Functions | |
static const JGroup & | getInstance () |
Get unique instance. More... | |
Static Public Attributes | |
static const int | size = sizeof(JGroup<T>::group) / sizeof(JGroup<T>::group[0]) |
Number of objects. More... | |
Private Member Functions | |
JGroup () | |
Default constructor. More... | |
Static Private Attributes | |
static const T | group [] |
actual group More... | |
Auxiliary class for a fixed group of objects.
A group should be defined as follows:
template<> const XXX JGroup<XXX>::group[] = { XXX(...), XXX(...), ... XXX(...) };
|
inlineprivate |
|
inlinestatic |
|
inline |
Get object at given index in group.
index | index |
Definition at line 65 of file JGroup.hh.
|
inline |
|
staticprivate |