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.
Example program to test JTOOLS::JHashSet class.
- Author
- mdejong
Definition in file JHashSet.cc.
◆ main()
Definition at line 59 of file JHashSet.cc.
60{
62
64
65 try {
66
68
70
72 }
73 catch(const exception &error) {
75 }
76
77
79
81
83
84 for (int i = 1<<10; i != 0; i >>= 1) {
86 }
87
88 buffer.erase(buffer.find(1<<2), buffer.find(1<<4));
89
90 if (!buffer.erase(1<<4)) {
92 }
93
94 for (hash_set::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
95
98
99 hash_set::const_iterator p = buffer.find(*i);
100
101 if (p != buffer.end())
103 else
104 FATAL(
"Inconsistent has set at " << *i <<
endl);
105 }
106
107 return 0;
108}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).