Example program to test JTOOLS::JHashSet class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JTools/JHashSet.hh"
#include "JLang/JObjectID.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::JHashSet class. 
- Author
 - mdejong 
 
Definition in file JHashSet.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 59 of file JHashSet.cc.
   67     JParser<> zap(
"Example program to test hash set.");
 
   73   catch(
const exception &error) {
 
   74     FATAL(error.what() << endl);
 
   84   for (
int i = 1<<10; 
i != 0; 
i >>= 1) {
 
   88   buffer.erase(buffer.find(1<<2), buffer.find(1<<4));
 
   90   if (!buffer.erase(1<<4)) {
 
   91     FATAL(
"Erasing value failed." << endl);
 
   94   for (hash_set::const_iterator 
i = buffer.begin(); 
i != buffer.end(); ++
i) {
 
   96     cout << setw(4) << *
i;
 
   99     hash_set::const_iterator p = buffer.find(*i);
 
  101     if (p != buffer.end())
 
  102       cout << setw(4) << *p << endl;
 
  104       FATAL(
"Inconsistent has set at " << *i << endl);
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object