class OEFuzzy
Class used to represent fuzzy logic used in expression tests.
OEFuzzy(const unsigned int v)
Construct an OEFuzzy instance 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 (FzTrue, FzFalse, and FzMaybe) are define in OEChem which represent the fuzzy values of true, false, and maybe, respectively.
operator bool() const
Boolean test operator. Both fuzzy true and maybe values will return boolean true. A fuzzy false value will return boolean false.
const OEFuzzy &operator! ()
Negation operator. Negation of true will return false. Negation of false will return true. Negation of maybe will return maybe.
const OEFuzzy &operator&& (const OEFuzzy&)
And operator. Logic values for ''fuzzy and'' follow
(FzFalse && FzFalse) == FzFalse
(FzFalse && FzMaybe) == FzFalse
(FzFalse && FzTrue) == FzFalse
(FzMaybe && FzFalse) == FzFalse
(FzMaybe && FzMaybe) == FzMaybe
(FzMaybe && FzTrue) == FzMaybe
(FzTrue && FzFalse) == FzFalse
(FzTrue && FzMaybe) == FzMaybe
(FzTrue && FzTrue) == FzTrue
const OEFuzzy &operator|| (const OEFuzzy&)
Or operator. Logic values for ''fuzzy or'' follow
(FzFalse
FzFalse) == FzFalse
(FzFalse
FzMaybe) == FzMaybe
(FzFalse
FzTrue) == FzTrue
(FzMaybe
FzFalse) == FzMaybe
(FzMaybe
FzMaybe) == FzMaybe
(FzMaybe
FzTrue) == FzTrue
(FzTrue
FzFalse) == FzTrue
(FzTrue
FzMaybe) == FzTrue
(FzTrue
FzTrue) == FzTrue
bool operator== (const OEFuzzy&) const
Equivalence operator. Two OEFuzzy instances are equivalent if their fuzzy logic values are identical.
bool operator!= (const OEFuzzy&) const
Not equal operator. Two OEFuzzy instances are not equivalent if their fuzzy logic values differ.