Double struct

Wrapper class for double.

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

Double(double data)
Construct a new Double object.

Public functions

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

Public variables

double data

Function documentation

Double::Double(double data)

Construct a new Double object.

Parameters
data

GenericType Double::type() const virtual

Returns data type.

Returns enum DOUBLE.