Example program to test JTOOLS::JHashMap class.  
More...
#include <iostream>
#include <iomanip>
#include "JTools/JHashMap.hh"
#include "JTools/JMultiHashMap.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 JTOOLS::JHashMap class. 
- Author
 - mdejong 
 
Definition in file JHashMap.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 18 of file JHashMap.cc.
   26     JParser<> zap(
"Example program to test hash map.");
 
   32   catch(
const exception &error) {
 
   33     FATAL(error.what() << endl);
 
   46   buffer[1][1][3] = 
"mies";
 
   47   buffer[2][1][2] = 
"noot";
 
   48   buffer[3][1][1] = 
"aap";
 
   50   key_type key(2, 4, 6);
 
   52   buffer.put(key, 
"hello world");
 
   54   cout << 
"Has " << key << 
" ? " << buffer.has(key) << endl;
 
   57   for (hash_map::super_iterator i = buffer.super_begin(); i != buffer.super_end(); ++i) {
 
   61   for (hash_map::const_iterator i0 = buffer.begin(); i0 != buffer.end(); ++i0) {
 
   62     for (hash_map::mapped_type::const_iterator i1 = i0->second.begin(); i1 != i0->second.end(); ++i1) {
 
   63       for (hash_map::mapped_type::mapped_type::const_iterator i2 = i1->second.begin(); i2 != i1->second.end(); ++i2) {
 
   64         cout << i0->first << 
' ' << i1->first << 
' ' << i2->first << 
' ' << i2->second << endl;
 
   69   for (hash_map::super_const_iterator i = buffer.super_begin(); i != buffer.super_end(); ++i) {
 
   70     cout << i.getKey() << 
' ' << i.getValue() << endl;
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).