My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::DataTypeTruthFn Class Reference

#include <DataTypeTruthFn.h>

Public Types

enum  Type { FN0 = 0x0, FN1 = 0x1, FN2 = 0x2 }
 

Public Member Functions

 DataTypeTruthFn (DATATYPE_TRUTH_FN0(*fn)=0)
 
 DataTypeTruthFn (DATATYPE_TRUTH_FN1(*fn))
 
 DataTypeTruthFn (DATATYPE_TRUTH_FN2(*fn))
 
virtual ~DataTypeTruthFn ()
 
bool evaluate (DataType &compVal)
 
bool evaluate (DataType &compVal, DataType &op1)
 
bool evaluate (DataType &compVal, DataType &op1, DataType &op2)
 
bool isZeroValued ()
 
bool isSingleValued ()
 
bool isDualValued ()
 
Type type ()
 
std::string format (std::string &reg, DataType &op1, DataType &op2)
 

Static Public Member Functions

static bool alwaysTrue (DataType &compVal)
 
static bool equals (DataType &compVal, DataType &op1)
 
static bool greaterThan (DataType &compVal, DataType &op1)
 
static bool lessThan (DataType &compVal, DataType &op1)
 
static bool greaterThanEq (DataType &compVal, DataType &op1)
 
static bool lessThanEq (DataType &compVal, DataType &op1)
 
static bool greaterThanAndLessThan (DataType &compVal, DataType &op1, DataType &op2)
 
static bool greaterThanAndLessThanEq (DataType &compVal, DataType &op1, DataType &op2)
 
static bool greaterThanEqAndLessThan (DataType &compVal, DataType &op1, DataType &op2)
 
static bool greaterThanEqAndLessThanEq (DataType &compVal, DataType &op1, DataType &op2)
 
static bool lessThanOrGreaterThan (DataType &compVal, DataType &op1, DataType &op2)
 
static bool lessThanEqOrGreaterThan (DataType &compVal, DataType &op1, DataType &op2)
 
static bool lessThanOrGreaterThanEq (DataType &compVal, DataType &op1, DataType &op2)
 
static bool lessThanEqOrGreaterThanEq (DataType &compVal, DataType &op1, DataType &op2)
 

Detailed Description

A class for managing operations on DataType objects which return booleans

Constructor & Destructor Documentation

DataTypeTruthFn::DataTypeTruthFn ( DATATYPE_TRUTH_FN0 *  fn = 0)

Constructor.

....................................................................... Constructors.

DataTypeTruthFn::~DataTypeTruthFn ( )
virtual

Destructor.

....................................................................... Destructor.


The documentation for this class was generated from the following files: