Jpp test-rotations-old
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. | |
int | operator() (const T &object) const |
Get index of given objec in group. | |
Static Public Member Functions | |
static const JGroup & | getInstance () |
Get unique instance. | |
Static Public Attributes | |
static const int | size = sizeof(JGroup<T>::group) / sizeof(JGroup<T>::group[0]) |
Number of objects. | |
Private Member Functions | |
JGroup () | |
Default constructor. | |
const double | group [] |
Static Private Attributes | |
static const T | group [] |
actual group | |
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 |
|
private |
|
staticprivate |
|
static |