37 friend inline bool operator==(
const __A__& first,
const __A__& second)
39 return first.a == second.a;
49 friend inline std::ostream&
operator<<(std::ostream& out,
const __A__&
object)
51 return out <<
object.a;
64 bool inline is_equal(
const T& zero)
78 inline void print(std::ostream& out,
const char* name)
84 out << setw(12) << left << name <<
' ' << value << endl;
87#define PRINT(OUT, CLASS) print<CLASS>(OUT, #CLASS)
97int main(
int argc,
char**argv)
105 JParser<> zap(
"Example program to test zero values of non-primitive data types.");
111 catch(
const exception &error) {
112 FATAL(error.what() << endl);
122 ASSERT(is_equal<int> (0));
123 ASSERT(is_equal<float> (0.0));
124 ASSERT(is_equal<double>(0.0));
125 ASSERT(is_equal<__A__> (__A__(0)));
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
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
int main(int argc, char **argv)
#define PRINT(OUT, CLASS)
Definition of zero value for any class.
Utility class to parse command line options.
static const JZero zero
Function object to assign zero value.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool operator==(Packet const &p, ID const &id)