Go to the documentation of this file. 1 #ifndef __JLANG__JGROUP__
2 #define __JLANG__JGROUP__
12 namespace JPP {
using namespace JLANG; }
43 static const JGroup object;
57 if (index >= 0 && index <
size)
58 return this->
group[index];
72 for (
int i = 0; i !=
size; ++i) {
73 if (this->
group[i] ==
object) {
int operator()(const T &object) const
Get index of given objec in group.
Exception for accessing an index in a collection that is outside of its range.
static const int size
Number of objects.
JGroup()
Default constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static const JGroup & getInstance()
Get unique instance.
static const T group[]
actual group
const T & operator()(const int index) const
Get object at given index in group.
Auxiliary class for a fixed group of objects.
Auxiliary classes and methods for language specific functionality.