Go to the documentation of this file.
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;
Test availability of comparison operators of non-composite data types.
#define ASSERT(A,...)
Assert macro.
#define PRINT(OUT, CLASS)
Print availabilty of comparison operators.
Utility class to parse command line options.
bool operator<(const Head &first, const Head &second)
Less than operator.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int main(int argc, char **argv)
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
Template definition of auxiliary base class for composite data structures composed of base classes wi...
Template definition of auxiliary base class for comparison of data structures.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
JNullType operator>(JAnyType, JAnyType)