Integer struct

Wrapper class for integer.

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

Integer(int data)
Construct a new Integer object.

Public functions

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

Public variables

int data

Function documentation

Integer::Integer(int data)

Construct a new Integer object.

Parameters
data

GenericType Integer::type() const virtual

Returns data type.

Returns enum INTEGER.