1#ifndef __JLANG__JGROUP__
2#define __JLANG__JGROUP__
12namespace JPP {
using namespace JLANG; }
53 static const JGroup object;
67 if (index >= 0 && index <
size)
68 return this->group[index];
82 for (
int i = 0; i !=
size; ++i) {
83 if (this->group[i] ==
object) {
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing an index in a collection that is outside of its range.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for a fixed group of objects.
static const int size
Number of objects.
JGroup()
Default constructor.
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.
int operator()(const T &object) const
Get index of given objec in group.