OEFuzzy

class OEFuzzy

This class represents OEFuzzy.

The OEFuzzy class represents fuzzy logic used in expression tests.

Constructors

OEFuzzy()

Default constructor.

OEFuzzy(const unsigned int v)

Construct an OEFuzzy object given with an integer value. The integer values should be one of the values give in the OEFuzzVal namespace. Three pre-defined global constant fuzzy values (OEChem_FzTrue, OEChem_FzFalse, and OEChem_FzMaybe) are define in OEChem which represent the fuzzy values of true, false, and maybe, respectively.

Default and copy constructors.

operator!

const OEFuzzy &operator!() const

Negation operator. Negation of true(OEChem_FzTrue) will return false(OEChem_FzFalse). Negation of false(OEChem_FzFalse) will return true(OEChem_FzTrue). Negation of maybe(OEChem_FzMaybe) will return maybe (OEChem_FzMaybe).

operator!=

bool operator!=(const OEFuzzy &) const

Not equal operator. Two OEFuzzy objects are not equivalent if their fuzzy logic values differ.

operator==

bool operator==(const OEFuzzy &) const

Equivalence operator. Two OEFuzzy objects are equivalent if their fuzzy logic values are identical.

operator bool

operator bool() const

Boolean test operator. Both fuzzy true (OEChem_FzTrue) and maybe (OEChem_FzMaybe) values will return true. A fuzzy false(OEChem_FzFalse) value will return false.