20 int main(
int argc, 
char **argv)
 
   28     JParser<> zap(
"Example program to test multi-dimensional map.");
 
   34   catch(
const exception &error) {
 
   35     FATAL(error.what() << endl);
 
   41   const double xmin = -1.0;
 
   42   const double xmax = +1.0;
 
   45   typedef JMAPLIST<JMap,
 
   47                    JMap>::maplist                JMaplist_t;
 
   49   typedef JMultiMap<double, double, JMaplist_t>  JMultimap_t;
 
   53   for (
double x = xmin; x <= xmax; x += (xmax - xmin)/(nx - 1)) {
 
   54     for (
double y = xmin; y <= xmax; y += (xmax - xmin)/(nx - 1)) {
 
   55       for (
double z = xmin; z <= xmax; z += (xmax - xmin)/(nx - 1)) {
 
   56         buffer[x][y][z] = x*100 + y*10 + z;
 
   61   const JFormat_t format(6, 1, std::ios::fixed);
 
   63   setFormat< JMultiKey<3, const double> >(format);
 
   64   setFormat< JMultiKey<2, const double> >(format);
 
   65   setFormat< JMultiKey<1, const double> >(format);
 
   67   cout << 
"i->[second]*->(first|second)" << endl;
 
   69   for (JMultimap_t::super_const_iterator i = buffer.super_begin(); i != buffer.super_end(); ++i) {
 
   70     cout << format << i->first                  << 
' '  
   71          << format << i->second->first          << 
' '  
   72          << format << i->second->second->first  << 
' '  
   73          << format << i->second->second->second << endl;
 
   76   cout << 
"i.getKey() i.getValue()" << endl;
 
   78   for (JMultimap_t::super_const_iterator i = buffer.super_begin(); i != buffer.super_end(); ++i) {
 
   79     cout << i.getKey() << 
' ' << format << i.getValue() << endl;
 
Utility class to parse command line options. 
 
JMultiMap is a general purpose multidimensional map based on a type list of maps. ...
 
int main(int argc, char *argv[])
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Utility class to parse command line options.