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) {
 
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. 
 
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. 
 
static const T group[]
actual group 
 
int operator()(const T &object) const 
Get index of given objec in group.