CONZEPT 16 C++ API
|
Container holding one of many alternatives. More...
#include "C16/Variant.hpp"
Container holding one of many alternatives.
Public Types | |
enum | Alternative { Alternative::NONE, Alternative::VALUE_ALPHA = 0x10 | 1, Alternative::VALUE_LOGIC, Alternative::VALUE_BYTE, Alternative::VALUE_WORD, Alternative::VALUE_INT, Alternative::VALUE_BIGINT, Alternative::VALUE_FLOAT, Alternative::VALUE_DECIMAL, Alternative::VALUE_DATE, Alternative::VALUE_TIME, Alternative::ARRAY_ALPHA = 0x20 | 1, Alternative::ARRAY_LOGIC, Alternative::ARRAY_BYTE, Alternative::ARRAY_WORD, Alternative::ARRAY_INT, Alternative::ARRAY_BIGINT, Alternative::ARRAY_FLOAT, Alternative::ARRAY_DECIMAL, Alternative::ARRAY_DATE, Alternative::ARRAY_TIME } |
Alternative of a variant. More... | |
enum | Space { Space::NONE, Space::VALUE = 0x10, Space::ARRAY = 0x20 } |
Space of a variant. More... | |
|
strong |
Alternative of a variant.
Enumerator | |
---|---|
NONE | Variant holds nothing. |
VALUE_ALPHA | Variant holds a Value::Alpha. |
VALUE_LOGIC | Variant holds a Value::Logic. |
VALUE_BYTE | Variant holds a Value::Byte. |
VALUE_WORD | Variant holds a Value::Word. |
VALUE_INT | Variant holds a Value::Int. |
VALUE_BIGINT | Variant holds a Value::Bigint. |
VALUE_FLOAT | Variant holds a Value::Float. |
VALUE_DECIMAL | Variant holds a Value::Decimal. |
VALUE_DATE | Variant holds a Value::Date. |
VALUE_TIME | Variant holds a Value::Time. |
ARRAY_ALPHA | Variant holds an Array<Value::Alpha>. |
ARRAY_LOGIC | Variant holds an Array<Value::Logic>. |
ARRAY_BYTE | Variant holds an Array<Value::Byte>. |
ARRAY_WORD | Variant holds an Array<Value::Word>. |
ARRAY_INT | Variant holds an Array<Value::Int>. |
ARRAY_BIGINT | Variant holds an Array<Value::Bigint>. |
ARRAY_FLOAT | Variant holds an Array<Value::Float>. |
ARRAY_DECIMAL | Variant holds an Array<Value::Decimal>. |
ARRAY_DATE | Variant holds an Array<Value::Date>. |
ARRAY_TIME | Variant holds an Array<Value::Time>. |
|
strong |
C16::Variant::Variant | ( | ) |
Constructs a variant holding nothing.
C16::Variant::Variant | ( | const Value::Alpha & | value | ) |
Constructs a variant holding a Value::Alpha.
value | Value::Alpha |
C16::Variant::Variant | ( | Value::Alpha::const_pointer | value | ) |
Constructs a variant holding a Value::Alpha.
value | Value::Alpha |
C16::Variant::Variant | ( | Value::Alpha & | value | ) |
Constructs a variant holding a reference to a Value::Alpha.
value | Value::Alpha |
C16::Variant::Variant | ( | Value::Logic | value | ) |
Constructs a variant holding a Value::Logic.
value | Value::Logic |
C16::Variant::Variant | ( | Value::Logic & | value | ) |
Constructs a variant holding a reference to a Value::Logic.
value | Value::Logic |
C16::Variant::Variant | ( | Value::Byte | value | ) |
Constructs a variant holding a Value::Byte.
value | Value::Byte |
C16::Variant::Variant | ( | Value::Byte & | value | ) |
Constructs a variant holding a reference to a Value::Byte.
value | Value::Byte |
C16::Variant::Variant | ( | Value::Word | value | ) |
Constructs a variant holding a Value::Byte.
value | Value::Byte |
C16::Variant::Variant | ( | Value::Word & | value | ) |
Constructs a variant holding a reference to a Value::Word.
value | Value::Word |
C16::Variant::Variant | ( | Value::Int | value | ) |
Constructs a variant holding a Value::Int.
value | Value::Int |
C16::Variant::Variant | ( | Value::Int & | value | ) |
Constructs a variant holding a reference to a Value::Int.
value | Value::Int |
C16::Variant::Variant | ( | Value::Bigint | value | ) |
Constructs a variant holding a Value::Bigint.
value | Value::Bigint |
C16::Variant::Variant | ( | Value::Bigint & | value | ) |
Constructs a variant holding a reference to a Value::Bigint.
value | Value::Bigint |
C16::Variant::Variant | ( | Value::Float | value | ) |
Constructs a variant holding a Value::Float.
value | Value::Float |
C16::Variant::Variant | ( | Value::Float & | value | ) |
Constructs a variant holding a reference to a Value::Float.
value | Value::Float |
C16::Variant::Variant | ( | const Value::Decimal & | value | ) |
Constructs a variant holding a Value::Decimal.
value | Value::Decimal |
C16::Variant::Variant | ( | Value::Decimal & | value | ) |
Constructs a variant holding a reference to a Value::Decimal.
value | Value::Decimal |
C16::Variant::Variant | ( | Value::Date | value | ) |
Constructs a variant holding a Value::Date.
value | Value::Date |
C16::Variant::Variant | ( | Value::Date & | value | ) |
Constructs a variant holding a reference to a Value::Date.
value | Value::Date |
C16::Variant::Variant | ( | Value::Time | value | ) |
Constructs a variant holding a Value::Time.
value | Value::Time |
C16::Variant::Variant | ( | Value::Time & | value | ) |
Constructs a variant holding a reference to a Value::Time.
value | Value::Time |
C16::Variant::Variant | ( | const Variant & | other | ) |
Constructs a variant by copying another variant.
other | Another variant |
Alternative C16::Variant::alternative | ( | ) | const |
Gets the alternative of the variant.
bool C16::Variant::reference | ( | ) | const |
Gets if the variant holds a reference.
const Value& C16::Variant::value | ( | ) | const |
Gets the holded value of the variant.
Value | Type of the value |
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a value of the type. |
Value& C16::Variant::value | ( | ) |
Gets the holded value of the variant.
Value | Type of the value |
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a value of the type. |
const Value& C16::Variant::value_const | ( | ) | const |
Gets the holded value of the variant.
Value | Type of the value |
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a value of the type. |
const Value::Alpha& C16::Variant::value_alpha | ( | ) | const |
Short name alias for value<Value::Alpha>() const.
Value::Alpha& C16::Variant::value_alpha | ( | ) |
Short name alias for value<Value::Alpha>().
const Value::Alpha& C16::Variant::value_alpha_const | ( | ) | const |
Short name alias for value<Value::Alpha>() const.
const Value::Logic& C16::Variant::value_logic | ( | ) | const |
Short name alias for value<Value::Logic>() const.
Value::Logic& C16::Variant::value_logic | ( | ) |
Short name alias for value<Value::Logic>().
const Value::Logic& C16::Variant::value_logic_const | ( | ) | const |
Short name alias for value<Value::Logic>() const.
const Value::Byte& C16::Variant::value_byte | ( | ) | const |
Short name alias for value<Value::Byte>() const.
Value::Byte& C16::Variant::value_byte | ( | ) |
Short name alias for value<Value::Byte>().
const Value::Byte& C16::Variant::value_byte_const | ( | ) | const |
Short name alias for value<Value::Byte>() const.
const Value::Word& C16::Variant::value_word | ( | ) | const |
Short name alias for value<Value::Word>() const.
Value::Word& C16::Variant::value_word | ( | ) |
Short name alias for value<Value::Word>().
const Value::Word& C16::Variant::value_word_const | ( | ) | const |
Short name alias for value<Value::Word>() const.
const Value::Int& C16::Variant::value_int | ( | ) | const |
Short name alias for value<Value::Int>() const.
Value::Int& C16::Variant::value_int | ( | ) |
Short name alias for value<Value::Int>().
const Value::Int& C16::Variant::value_int_const | ( | ) | const |
Short name alias for value<Value::Int>() const.
const Value::Bigint& C16::Variant::value_bigint | ( | ) | const |
Short name alias for value<Value::Bigint>() const.
Value::Bigint& C16::Variant::value_bigint | ( | ) |
Short name alias for value<Value::Bigint>().
const Value::Bigint& C16::Variant::value_bigint_const | ( | ) | const |
Short name alias for value<Value::Bigint>() const.
const Value::Float& C16::Variant::value_float | ( | ) | const |
Short name alias for value<Value::Float>() const.
Value::Float& C16::Variant::value_float | ( | ) |
Short name alias for value<Value::Float>().
const Value::Float& C16::Variant::value_float_const | ( | ) | const |
Short name alias for value<Value::Float>() const.
const Value::Decimal& C16::Variant::value_decimal | ( | ) | const |
Short name alias for value<Value::Decimal>() const.
Value::Decimal& C16::Variant::value_decimal | ( | ) |
Short name alias for value<Value::Decimal>().
const Value::Decimal& C16::Variant::value_decimal_const | ( | ) | const |
Short name alias for value<Value::Decimal>() const.
const Value::Date& C16::Variant::value_date | ( | ) | const |
Short name alias for value<Value::Date>() const.
Value::Date& C16::Variant::value_date | ( | ) |
Short name alias for value<Value::Date>().
const Value::Date& C16::Variant::value_date_const | ( | ) | const |
Short name alias for value<Value::Date>() const.
const Value::Time& C16::Variant::value_time | ( | ) | const |
Short name alias for value<Value::Time>() const.
Value::Time& C16::Variant::value_time | ( | ) |
Short name alias for value<Value::Time>().
const Value::Time& C16::Variant::value_time_const | ( | ) | const |
Short name alias for value<Value::Time>() const.
C16::Variant::operator const Value::Alpha & | ( | ) | const |
Gets the holded Value::Alpha.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Alpha. |
C16::Variant::operator Value::Alpha & | ( | ) |
Gets the holded Value::Alpha.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Alpha. |
C16::Variant::operator const Value::Logic & | ( | ) | const |
Gets the holded Value::Logic.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Logic. |
C16::Variant::operator Value::Logic & | ( | ) |
Gets the holded Value::Logic.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Logic. |
C16::Variant::operator const Value::Byte & | ( | ) | const |
Gets the holded Value::Byte.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Byte. |
C16::Variant::operator Value::Byte & | ( | ) |
Gets the holded Value::Byte.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Byte. |
C16::Variant::operator const Value::Word & | ( | ) | const |
Gets the holded Value::Word.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Word. |
C16::Variant::operator Value::Word & | ( | ) |
Gets the holded Value::Word.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Word. |
C16::Variant::operator const Value::Int & | ( | ) | const |
Gets the holded Value::Int.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Int. |
C16::Variant::operator Value::Int & | ( | ) |
Gets the holded Value::Int.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Int. |
C16::Variant::operator const Value::Bigint & | ( | ) | const |
Gets the holded Value::Bigint.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Bigint. |
C16::Variant::operator Value::Bigint & | ( | ) |
Gets the holded Value::Bigint.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Bigint. |
C16::Variant::operator const Value::Float & | ( | ) | const |
Gets the holded Value::Float.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Float. |
C16::Variant::operator Value::Float & | ( | ) |
Gets the holded Value::Float.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Float. |
C16::Variant::operator const Value::Decimal & | ( | ) | const |
Gets the holded Value::Decimal.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Decimal. |
C16::Variant::operator Value::Decimal & | ( | ) |
Gets the holded Value::Decimal.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Decimal. |
C16::Variant::operator const Value::Date & | ( | ) | const |
Gets the holded Value::Date.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Date. |
C16::Variant::operator Value::Date & | ( | ) |
Gets the holded Value::Date.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Date. |
C16::Variant::operator const Value::Time & | ( | ) | const |
Gets the holded Value::Time.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Time. |
C16::Variant::operator Value::Time & | ( | ) |
Gets the holded Value::Time.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Value::Time. |
const Array<Value>& C16::Variant::array | ( | ) | const |
Array<Value>& C16::Variant::array | ( | ) |
const Array<Value>& C16::Variant::array_const | ( | ) | const |
const Array<Value::Alpha>& C16::Variant::array_alpha | ( | ) | const |
Short name alias for array<Value::Alpha>() const.
Array<Value::Alpha>& C16::Variant::array_alpha | ( | ) |
Short name alias for array<Value::Alpha>().
const Array<Value::Logic>& C16::Variant::array_logic | ( | ) | const |
Short name alias for array<Value::Logic>() const.
Array<Value::Logic>& C16::Variant::array_logic | ( | ) |
Short name alias for array<Value::Logic>().
const Array<Value::Byte>& C16::Variant::array_byte | ( | ) | const |
Short name alias for array<Value::Byte>() const.
Array<Value::Byte>& C16::Variant::array_byte | ( | ) |
Short name alias for array<Value::Byte>().
const Array<Value::Word>& C16::Variant::array_word | ( | ) | const |
Short name alias for array<Value::Word>() const.
Array<Value::Word>& C16::Variant::array_word | ( | ) |
Short name alias for array<Value::Word>().
const Array<Value::Int>& C16::Variant::array_int | ( | ) | const |
Short name alias for array<Value::Int>() const.
Array<Value::Int>& C16::Variant::array_int | ( | ) |
Short name alias for array<Value::Int>().
const Array<Value::Bigint>& C16::Variant::array_bigint | ( | ) | const |
Short name alias for array<Value::Bigint>() const.
Array<Value::Bigint>& C16::Variant::array_bigint | ( | ) |
Short name alias for array<Value::Bigint>().
const Array<Value::Float>& C16::Variant::array_float | ( | ) | const |
Short name alias for array<Value::Float>() const.
Array<Value::Float>& C16::Variant::array_float | ( | ) |
Short name alias for array<Value::Float>().
const Array<Value::Decimal>& C16::Variant::array_decimal | ( | ) | const |
Short name alias for array<Value::Decimal>() const.
Array<Value::Decimal>& C16::Variant::array_decimal | ( | ) |
Short name alias for array<Value::Decimal>().
const Array<Value::Date>& C16::Variant::array_date | ( | ) | const |
Short name alias for array<Value::Date>() const.
Array<Value::Date>& C16::Variant::array_date | ( | ) |
Short name alias for array<Value::Date>().
const Array<Value::Time>& C16::Variant::array_time | ( | ) | const |
Short name alias for array<Value::Time>() const.
Array<Value::Time>& C16::Variant::array_time | ( | ) |
Short name alias for array<Value::Time>().
C16::Variant::operator const Array< Value::Alpha > & | ( | ) | const |
Gets the holded Array<Value::Alpha>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Alpha>. |
C16::Variant::operator Array< Value::Alpha > & | ( | ) |
Gets the holded Array<Value::Alpha>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Alpha>. |
C16::Variant::operator const Array< Value::Logic > & | ( | ) | const |
Gets the holded Array<Value::Logic>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Logic>. |
C16::Variant::operator Array< Value::Logic > & | ( | ) |
Gets the holded Array<Value::Logic>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Logic>. |
C16::Variant::operator const Array< Value::Byte > & | ( | ) | const |
Gets the holded Array<Value::Byte>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Byte>. |
C16::Variant::operator Array< Value::Byte > & | ( | ) |
Gets the holded Array<Value::Byte>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Byte>. |
C16::Variant::operator const Array< Value::Word > & | ( | ) | const |
Gets the holded Array<Value::Word>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Word>. |
C16::Variant::operator Array< Value::Word > & | ( | ) |
Gets the holded Array<Value::Word>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Word>. |
C16::Variant::operator const Array< Value::Int > & | ( | ) | const |
Gets the holded Array<Value::Int>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Int>. |
C16::Variant::operator Array< Value::Int > & | ( | ) |
Gets the holded Array<Value::Int>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Int>. |
C16::Variant::operator const Array< Value::Bigint > & | ( | ) | const |
Gets the holded Array<Value::Bigint>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Bigint>. |
C16::Variant::operator Array< Value::Bigint > & | ( | ) |
Gets the holded Array<Value::Bigint>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Bigint>. |
C16::Variant::operator const Array< Value::Float > & | ( | ) | const |
Gets the holded Array<Value::Float>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Float>. |
C16::Variant::operator Array< Value::Float > & | ( | ) |
Gets the holded Array<Value::Float>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Float>. |
C16::Variant::operator const Array< Value::Decimal > & | ( | ) | const |
Gets the holded Array<Value::Decimal>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Decimal>. |
C16::Variant::operator Array< Value::Decimal > & | ( | ) |
Gets the holded Array<Value::Decimal>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Decimal>. |
C16::Variant::operator const Array< Value::Date > & | ( | ) | const |
Gets the holded Array<Value::Date>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Date>. |
C16::Variant::operator Array< Value::Date > & | ( | ) |
Gets the holded Array<Value::Date>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Date>. |
C16::Variant::operator const Array< Value::Time > & | ( | ) | const |
Gets the holded Array<Value::Time>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Time>. |
C16::Variant::operator Array< Value::Time > & | ( | ) |
Gets the holded Array<Value::Time>.
Exception::Inaccessibility | Alternative inaccessible. Variant does not hold a Array<Value::Time>. |