Bool struct

Wrapper class for bool.

Base classes

struct Generic
Generic is used to capture type string and the following primitives: double, integer, bool. Once captured, it has methods to convert to the appropriate type. Currently only getDouble() and getString() are implemented. Generic is not instantiable and is used for polymorphic behaviors. Only sub-classes can be constructed.

Constructors, destructors, conversion operators

Bool(bool data)
Construct a new Bool object.

Public functions

auto type() const -> GenericType virtual
Returns data type.

Public variables

bool data

Function documentation

Bool::Bool(bool data)

Construct a new Bool object.

Parameters
data

GenericType Bool::type() const virtual

Returns data type.

Returns enum BOOL.