1 #ifndef __JLANG__JGROUP__
2 #define __JLANG__JGROUP__
12 namespace 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) {
JGroup()
Default constructor.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static const int size
Number of objects.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
static const JGroup & getInstance()
Get unique instance.
Auxiliary class for a fixed group of objects.
static const T group[]
actual group
const T & operator()(const int index) const
Get object at given index in group.
Exception for accessing an index in a collection that is outside of its range.
int operator()(const T &object) const
Get index of given objec in group.