Example program to test JLANG::JGroup class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JGroup.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JGroup class. 
- Author
 - mdejong 
 
Definition in file JGroup.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 33 of file JGroup.cc.
   42     JParser<> zap(
"Example program to test groups.");
 
   48   catch(
const exception &error) {
 
   49     FATAL(error.what() << endl);
 
   52   DEBUG(
"Size of group " << JGroup<double>::size << endl);
 
   56   for (
int i = 0; i != 
N; ++i) {
 
   57     DEBUG(i << 
' ' << getElement(i) << endl);
 
   60   ASSERT(JGroup<double>::size == 
N, 
"Test size of group.");
 
   62   for (
int i = 0; i != 
N; ++i) {
 
   63     ASSERT(getElement(i) == (
double) i, 
"Test element access.");
 
Utility class to parse command line options. 
 
#define ASSERT(A,...)
Assert macro. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then usage $script[input file[working directory[option]]] nWhere option can be N
 
#define DEBUG(A)
Message macros.