21 int main(
int argc, 
char **argv)
 
   29     JParser<> zap(
"Example program to test object iteration using STD containers.");
 
   35   catch(
const exception &error) {
 
   36     FATAL(error.what() << endl);
 
   46   for (
int i = 0; i != 3; ++i) {
 
   47     buffer.push_back(i + 0.1);
 
   53     for (
int i = 0; in.
hasNext(); ++i) {
 
   55       const double value = *in.
next();
 
   57       DEBUG(
"in  " << value << endl);
 
   59       ASSERT(value == buffer[i]);
 
   66     for (
int i = 0; out.
hasNext(); ++i) {
 
   68       const int value = *in.
next();
 
   70       DEBUG(
"out " << value << endl);
 
   72       ASSERT(value == (
int) buffer[i]);
 
   78     for (
int i = 0; in.
hasNext(); ++i) {
 
   80       const double value = *in.
next();
 
   82       DEBUG(
"in  " << value << endl);
 
   84       ASSERT(value == buffer[i]);
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
#define ASSERT(A,...)
Assert macro.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
int main(int argc, char **argv)
 
Interface for object iteration with type conversion.
 
virtual bool hasNext() override
Check availability of next element.
 
virtual const pointer_type & next()=0
Get next element.
 
virtual bool hasNext()=0
Check availability of next element.
 
virtual void rewind()=0
Rewind.
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
std::vector< JHitW0 > buffer_type
hits
 
Implementation of object iteration from STD container.