23 bool equals(
const __A__&
object)
const
25 return this->value ==
object.value;
28 friend std::ostream&
operator<<(std::ostream& out,
const __A__&
object)
30 return out <<
object.value;
44 bool equals(
const __B__&
object)
const
46 return this->value ==
object.value;
49 bool equals(
const int value)
const
51 return this->value == value;
54 friend std::ostream&
operator<<(std::ostream& out,
const __B__&
object)
56 return out <<
object.value;
70#define PRINT(OUT,OP,A,B) \
71 OUT << "(" << A << ") " << #OP " (" << B << ") => " << (A OP B) << std::endl;
89 JParser<> zap(
"Example program to test object comparisons.");
95 catch(
const exception &error) {
int main(int argc, char **argv)
#define PRINT(OUT, OP, A, B)
Print.
General purpose messaging.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of auxiliary base class for comparison of data structures.