ETBoolean Class Reference

This class represents the result of a predicate in SQL, either TRUE, FALSE, or UNKNOWN. More...

List of all members.

Public Member Functions

 ETBoolean (bool in_boolean)
 Implicit conversion from bool.
 ETBoolean ()
 Default constructor.
bool IsFalse () const
 Get whether this object represents FALSE.
bool IsTrue () const
 Get whether this object represents TRUE.
bool IsUnknown () const
 Get whether this object represents UNKNOWN.
 operator bool () const
 Conversion to bool. Converts to True if this object represents TRUE, converts to False otherwise.
ETBoolean operator! () const
 Operator NOT.
ETBoolean operator&& (ETBoolean in_other)
 Operator AND.
ETBoolean operator|| (ETBoolean in_other)
 Operator OR.

Static Public Member Functions

static ETBoolean False ()
 Factory method which creates FALSE instances.
static ETBoolean True ()
 Factory method which creates TRUE instances.
static ETBoolean Unknown ()
 Factory method which creates UNKNOWN instances.

Detailed Description

This class represents the result of a predicate in SQL, either TRUE, FALSE, or UNKNOWN.


Constructor & Destructor Documentation

ETBoolean (  )  [inline]

Default constructor.

ETBoolean ( bool  in_boolean  )  [inline]

Implicit conversion from bool.


Member Function Documentation

static ETBoolean False (  )  [inline, static]

Factory method which creates FALSE instances.

Returns:
An ETBoolean which represents FALSE.
bool IsFalse (  )  const [inline]

Get whether this object represents FALSE.

Returns:
True if this object represents FALSE, False otherwise.
bool IsTrue (  )  const [inline]

Get whether this object represents TRUE.

Returns:
True if this object represents TRUE, False otherwise.
bool IsUnknown (  )  const [inline]

Get whether this object represents UNKNOWN.

Returns:
True if this object represents UNKNOWN, False otherwise.
operator bool (  )  const [inline]

Conversion to bool. Converts to True if this object represents TRUE, converts to False otherwise.

ETBoolean operator! (  )  const [inline]

Operator NOT.

Returns:
An ETBoolean representing TRUE if this object represents FALSE, an ETBoolean representing FALSE if this object represents TRUE, and an ETBoolean representing UNKNOWN if this object represents UNKNOWN.
ETBoolean operator&& ( ETBoolean  in_other  )  [inline]

Operator AND.

Parameters:
in_other The other ETBoolean to use in the AND operation.
Returns:
An ETBoolean representing TRUE if both this object and in_other represent TRUE, an ETBoolean representing FALSE if either this object or in_other represent FALSE, or an ETBoolean representing UNKNOWN otherwise.
ETBoolean operator|| ( ETBoolean  in_other  )  [inline]

Operator OR.

Parameters:
in_other The other ETBoolean to use in the OR operation.
Returns:
An ETBoolean representing FALSE if both this object and in_other represent FALSE, an ETBoolean representing TRUE if either this object or in_other represent TRUE, or an ETBoolean representing UNKNOWN otherwise.
static ETBoolean True (  )  [inline, static]

Factory method which creates TRUE instances.

Returns:
An ETBoolean which represents TRUE.
static ETBoolean Unknown (  )  [inline, static]

Factory method which creates UNKNOWN instances.

Returns:
An ETBoolean which represents UNKNOWN.

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

Generated on Wed May 17 14:21:18 2017 for SimbaEngine 10.1.3.1011 by simba