20 inline int f1(
const int i)
33int main(
int argc,
char **argv)
42 JParser<> zap(
"Example program to test collection class.");
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
60 for (
int i = 0; i != 5; ++i) {
77 for (JCollection_t::const_iterator i = a.begin(), j = b.begin(), k = c.begin(); i != a.end() && j != b.end() && k != c.end(); ++i, ++j, ++k) {
78 DEBUG(setw(4) << k->getY() <<
" == " << setw(4) << (i->getY() + j->getY() + 1000) * 2 + f1(i->getX()) << endl);
79 ASSERT(k->getY() == (i->getY() + j->getY() + 1000) * 2 + f1(i->getX()));
int main(int argc, char **argv)
General purpose class for a collection of sorted elements.
The elements in a collection are sorted according to their abscissa values and a given distance opera...
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
virtual const char * what() const override
Get error message.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).