21 struct __C__ :
public __B__ {};
26 bool less(
const __D__&
object)
const {
return true; }
29 inline bool operator!=(
const __A__& first,
const __A__& second) {
return false; }
30 inline bool operator< (
const __B__& first,
const __B__& second) {
return false; }
31 inline bool operator> (
const __B__& first,
const __B__& second) {
return false; }
37 public JMultiEquals<__E__, JTYPELIST<__A__, __D__>::typelist>
47 #define PRINT(OUT, CLASS) \
48 OUT << std::setw(6) << std::left << #CLASS << ' ' ; \
49 OUT << ' ' << JComparisonAvailable<CLASS>::has_eq << ' '; \
50 OUT << ' ' << JComparisonAvailable<CLASS>::has_ne << ' '; \
51 OUT << ' ' << JComparisonAvailable<CLASS>::has_lt << ' '; \
52 OUT << ' ' << JComparisonAvailable<CLASS>::has_gt << ' '; \
53 OUT << ' ' << JComparisonAvailable<CLASS>::has_le << ' '; \
54 OUT << ' ' << JComparisonAvailable<CLASS>::has_ge << std::endl;
63 int main(
int argc,
char **argv)
72 JParser<> zap(
"Example program to test availability of object comparisons.");
78 catch(
const exception &error) {
79 FATAL(error.what() << endl);
84 cout << setw(6) << left <<
"class" <<
' ' <<
"eq ne lt gt le ge" << endl;
int main(int argc, char **argv)
#define PRINT(OUT, CLASS)
Print availabilty of comparison operators.
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 test availability of comparison operators.
Utility class to parse command line options.
bool operator<(const Head &first, const Head &second)
Less than operator.
bool operator!=(const JTag &first, const JTag &second)
Not equal operator for JTag.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool operator>(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Greater than operator for UTC times.
Template definition of auxiliary base class for comparison of data structures.
Template definition of auxiliary base class for data structures composed of multiple base classes wit...