Subsections

 
8.13 OEFuzzy

class OEFuzzy

Class used to represent fuzzy logic used in expression tests.

8.13.1 Constructor

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.

8.13.2 operator bool

operator bool() const

Boolean test operator. Both fuzzy true and maybe values will return boolean true. A fuzzy false value will return boolean false.

8.13.3 operator !

const OEFuzzy &operator!  ()

Negation operator. Negation of true will return false. Negation of false will return true. Negation of maybe will return maybe.

8.13.4 operator &&

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

8.13.5 operator $\vert\vert$

const OEFuzzy &operator|| (const OEFuzzy&)

Or operator. Logic values for ''fuzzy or'' follow

(FzFalse $\vert\vert$ FzFalse) == FzFalse
(FzFalse $\vert\vert$ FzMaybe) == FzMaybe
(FzFalse $\vert\vert$ FzTrue) == FzTrue
(FzMaybe $\vert\vert$ FzFalse) == FzMaybe
(FzMaybe $\vert\vert$ FzMaybe) == FzMaybe
(FzMaybe $\vert\vert$ FzTrue) == FzTrue
(FzTrue $\vert\vert$ FzFalse) == FzTrue
(FzTrue $\vert\vert$ FzMaybe) == FzTrue
(FzTrue $\vert\vert$ FzTrue) == FzTrue

8.13.6 operator ==

bool operator== (const OEFuzzy&) const

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

8.13.7 operator !=

bool operator!= (const OEFuzzy&) const

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