1 #ifndef SZA_UTIL_DATATYPETRUTHFN_H
2 #define SZA_UTIL_DATATYPETRUTHFN_H
13 #define DATATYPE_TRUTH_FN0(fn) bool (fn)(DataType& compVal)
14 #define DATATYPE_TRUTH_FN1(fn) bool (fn)(DataType& compVal, DataType& op1)
15 #define DATATYPE_TRUTH_FN2(fn) bool (fn)(DataType& compVal, DataType& op1, DataType& op2)
49 static bool alwaysTrue(
DataType& compVal);
67 bool isSingleValued();
79 DATATYPE_TRUTH_FN0(*fn0_);
80 DATATYPE_TRUTH_FN1(*fn1_);
81 DATATYPE_TRUTH_FN2(*fn2_);
90 std::string formatZeroValuedFn(std::string& reg);
91 std::string formatSingleValuedFn (std::string& reg,
DataType& op1_);
92 std::string formatDualValuedFn(std::string& reg,
DataType& op1_,
DataType& op2_);
94 std::string formatOp(DATATYPE_TRUTH_FN1(*fn_));
95 std::string formatOp1(DATATYPE_TRUTH_FN2(*fn_));
96 std::string formatOp2(DATATYPE_TRUTH_FN2(*fn_));
97 std::string formatLogical(DATATYPE_TRUTH_FN2(*fn_));
99 std::string formatVal(
DataType& val);
100 std::string formatReg(std::string& reg);
109 #endif // End #ifndef SZA_UTIL_DATATYPETRUTHFN_H
A class for managing operations on DataType objects which return booleans.
Tagged: Tue Jun 22 22:32:16 UTC 2004.
virtual ~DataTypeTruthFn()
Destructor.
DataTypeTruthFn(bool(*fn)(DataType &compVal)=0)
Constructor.