CONZEPT 16 C++ API
C16::Variant Class Reference

Container holding one of many alternatives. More...

#include "C16/Variant.hpp"

Detailed Description

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...
 

Public Member Functions

 Variant ()
 Constructs a variant holding nothing. More...
 
 Variant (const Value::Alpha &value)
 Constructs a variant holding a Value::Alpha. More...
 
 Variant (Value::Alpha::const_pointer value)
 Constructs a variant holding a Value::Alpha. More...
 
 Variant (Value::Alpha &value)
 Constructs a variant holding a reference to a Value::Alpha. More...
 
 Variant (Value::Logic value)
 Constructs a variant holding a Value::Logic. More...
 
 Variant (Value::Logic &value)
 Constructs a variant holding a reference to a Value::Logic. More...
 
 Variant (Value::Byte value)
 Constructs a variant holding a Value::Byte. More...
 
 Variant (Value::Byte &value)
 Constructs a variant holding a reference to a Value::Byte. More...
 
 Variant (Value::Word value)
 Constructs a variant holding a Value::Byte. More...
 
 Variant (Value::Word &value)
 Constructs a variant holding a reference to a Value::Word. More...
 
 Variant (Value::Int value)
 Constructs a variant holding a Value::Int. More...
 
 Variant (Value::Int &value)
 Constructs a variant holding a reference to a Value::Int. More...
 
 Variant (Value::Bigint value)
 Constructs a variant holding a Value::Bigint. More...
 
 Variant (Value::Bigint &value)
 Constructs a variant holding a reference to a Value::Bigint. More...
 
 Variant (Value::Float value)
 Constructs a variant holding a Value::Float. More...
 
 Variant (Value::Float &value)
 Constructs a variant holding a reference to a Value::Float. More...
 
 Variant (const Value::Decimal &value)
 Constructs a variant holding a Value::Decimal. More...
 
 Variant (Value::Decimal &value)
 Constructs a variant holding a reference to a Value::Decimal. More...
 
 Variant (Value::Date value)
 Constructs a variant holding a Value::Date. More...
 
 Variant (Value::Date &value)
 Constructs a variant holding a reference to a Value::Date. More...
 
 Variant (Value::Time value)
 Constructs a variant holding a Value::Time. More...
 
 Variant (Value::Time &value)
 Constructs a variant holding a reference to a Value::Time. More...
 
 Variant (const Variant &other)
 Constructs a variant by copying another variant. More...
 
Alternative alternative () const
 Gets the alternative of the variant. More...
 
Space space () const
 Gets the space of the variant. More...
 
Type type () const
 Gets the type of the variant. More...
 
bool reference () const
 Gets if the variant holds a reference. More...
 
template<typename Value >
const Value & value () const
 Gets the holded value of the variant. More...
 
template<typename Value >
Value & value ()
 Gets the holded value of the variant. More...
 
template<typename Value >
const Value & value_const () const
 Gets the holded value of the variant. More...
 
const Value::Alphavalue_alpha () const
 Short name alias for value<Value::Alpha>() const. More...
 
Value::Alphavalue_alpha ()
 Short name alias for value<Value::Alpha>(). More...
 
const Value::Alphavalue_alpha_const () const
 Short name alias for value<Value::Alpha>() const. More...
 
const Value::Logicvalue_logic () const
 Short name alias for value<Value::Logic>() const. More...
 
Value::Logicvalue_logic ()
 Short name alias for value<Value::Logic>(). More...
 
const Value::Logicvalue_logic_const () const
 Short name alias for value<Value::Logic>() const. More...
 
const Value::Bytevalue_byte () const
 Short name alias for value<Value::Byte>() const. More...
 
Value::Bytevalue_byte ()
 Short name alias for value<Value::Byte>(). More...
 
const Value::Bytevalue_byte_const () const
 Short name alias for value<Value::Byte>() const. More...
 
const Value::Wordvalue_word () const
 Short name alias for value<Value::Word>() const. More...
 
Value::Wordvalue_word ()
 Short name alias for value<Value::Word>(). More...
 
const Value::Wordvalue_word_const () const
 Short name alias for value<Value::Word>() const. More...
 
const Value::Intvalue_int () const
 Short name alias for value<Value::Int>() const. More...
 
Value::Intvalue_int ()
 Short name alias for value<Value::Int>(). More...
 
const Value::Intvalue_int_const () const
 Short name alias for value<Value::Int>() const. More...
 
const Value::Bigintvalue_bigint () const
 Short name alias for value<Value::Bigint>() const. More...
 
Value::Bigintvalue_bigint ()
 Short name alias for value<Value::Bigint>(). More...
 
const Value::Bigintvalue_bigint_const () const
 Short name alias for value<Value::Bigint>() const. More...
 
const Value::Floatvalue_float () const
 Short name alias for value<Value::Float>() const. More...
 
Value::Floatvalue_float ()
 Short name alias for value<Value::Float>(). More...
 
const Value::Floatvalue_float_const () const
 Short name alias for value<Value::Float>() const. More...
 
const Value::Decimalvalue_decimal () const
 Short name alias for value<Value::Decimal>() const. More...
 
Value::Decimalvalue_decimal ()
 Short name alias for value<Value::Decimal>(). More...
 
const Value::Decimalvalue_decimal_const () const
 Short name alias for value<Value::Decimal>() const. More...
 
const Value::Datevalue_date () const
 Short name alias for value<Value::Date>() const. More...
 
Value::Datevalue_date ()
 Short name alias for value<Value::Date>(). More...
 
const Value::Datevalue_date_const () const
 Short name alias for value<Value::Date>() const. More...
 
const Value::Timevalue_time () const
 Short name alias for value<Value::Time>() const. More...
 
Value::Timevalue_time ()
 Short name alias for value<Value::Time>(). More...
 
const Value::Timevalue_time_const () const
 Short name alias for value<Value::Time>() const. More...
 
 operator const Value::Alpha & () const
 Gets the holded Value::Alpha. More...
 
 operator Value::Alpha & ()
 Gets the holded Value::Alpha. More...
 
 operator const Value::Logic & () const
 Gets the holded Value::Logic. More...
 
 operator Value::Logic & ()
 Gets the holded Value::Logic. More...
 
 operator const Value::Byte & () const
 Gets the holded Value::Byte. More...
 
 operator Value::Byte & ()
 Gets the holded Value::Byte. More...
 
 operator const Value::Word & () const
 Gets the holded Value::Word. More...
 
 operator Value::Word & ()
 Gets the holded Value::Word. More...
 
 operator const Value::Int & () const
 Gets the holded Value::Int. More...
 
 operator Value::Int & ()
 Gets the holded Value::Int. More...
 
 operator const Value::Bigint & () const
 Gets the holded Value::Bigint. More...
 
 operator Value::Bigint & ()
 Gets the holded Value::Bigint. More...
 
 operator const Value::Float & () const
 Gets the holded Value::Float. More...
 
 operator Value::Float & ()
 Gets the holded Value::Float. More...
 
 operator const Value::Decimal & () const
 Gets the holded Value::Decimal. More...
 
 operator Value::Decimal & ()
 Gets the holded Value::Decimal. More...
 
 operator const Value::Date & () const
 Gets the holded Value::Date. More...
 
 operator Value::Date & ()
 Gets the holded Value::Date. More...
 
 operator const Value::Time & () const
 Gets the holded Value::Time. More...
 
 operator Value::Time & ()
 Gets the holded Value::Time. More...
 
template<typename Value >
const Array< Value > & array () const
 Gets the holded array of the variant. More...
 
template<typename Value >
Array< Value > & array ()
 Gets the holded array of the variant. More...
 
template<typename Value >
const Array< Value > & array_const () const
 Gets the holded array of the variant. More...
 
const Array< Value::Alpha > & array_alpha () const
 Short name alias for array<Value::Alpha>() const. More...
 
Array< Value::Alpha > & array_alpha ()
 Short name alias for array<Value::Alpha>(). More...
 
const Array< Value::Logic > & array_logic () const
 Short name alias for array<Value::Logic>() const. More...
 
Array< Value::Logic > & array_logic ()
 Short name alias for array<Value::Logic>(). More...
 
const Array< Value::Byte > & array_byte () const
 Short name alias for array<Value::Byte>() const. More...
 
Array< Value::Byte > & array_byte ()
 Short name alias for array<Value::Byte>(). More...
 
const Array< Value::Word > & array_word () const
 Short name alias for array<Value::Word>() const. More...
 
Array< Value::Word > & array_word ()
 Short name alias for array<Value::Word>(). More...
 
const Array< Value::Int > & array_int () const
 Short name alias for array<Value::Int>() const. More...
 
Array< Value::Int > & array_int ()
 Short name alias for array<Value::Int>(). More...
 
const Array< Value::Bigint > & array_bigint () const
 Short name alias for array<Value::Bigint>() const. More...
 
Array< Value::Bigint > & array_bigint ()
 Short name alias for array<Value::Bigint>(). More...
 
const Array< Value::Float > & array_float () const
 Short name alias for array<Value::Float>() const. More...
 
Array< Value::Float > & array_float ()
 Short name alias for array<Value::Float>(). More...
 
const Array< Value::Decimal > & array_decimal () const
 Short name alias for array<Value::Decimal>() const. More...
 
Array< Value::Decimal > & array_decimal ()
 Short name alias for array<Value::Decimal>(). More...
 
const Array< Value::Date > & array_date () const
 Short name alias for array<Value::Date>() const. More...
 
Array< Value::Date > & array_date ()
 Short name alias for array<Value::Date>(). More...
 
const Array< Value::Time > & array_time () const
 Short name alias for array<Value::Time>() const. More...
 
Array< Value::Time > & array_time ()
 Short name alias for array<Value::Time>(). More...
 
 operator const Array< Value::Alpha > & () const
 Gets the holded Array<Value::Alpha>. More...
 
 operator Array< Value::Alpha > & ()
 Gets the holded Array<Value::Alpha>. More...
 
 operator const Array< Value::Logic > & () const
 Gets the holded Array<Value::Logic>. More...
 
 operator Array< Value::Logic > & ()
 Gets the holded Array<Value::Logic>. More...
 
 operator const Array< Value::Byte > & () const
 Gets the holded Array<Value::Byte>. More...
 
 operator Array< Value::Byte > & ()
 Gets the holded Array<Value::Byte>. More...
 
 operator const Array< Value::Word > & () const
 Gets the holded Array<Value::Word>. More...
 
 operator Array< Value::Word > & ()
 Gets the holded Array<Value::Word>. More...
 
 operator const Array< Value::Int > & () const
 Gets the holded Array<Value::Int>. More...
 
 operator Array< Value::Int > & ()
 Gets the holded Array<Value::Int>. More...
 
 operator const Array< Value::Bigint > & () const
 Gets the holded Array<Value::Bigint>. More...
 
 operator Array< Value::Bigint > & ()
 Gets the holded Array<Value::Bigint>. More...
 
 operator const Array< Value::Float > & () const
 Gets the holded Array<Value::Float>. More...
 
 operator Array< Value::Float > & ()
 Gets the holded Array<Value::Float>. More...
 
 operator const Array< Value::Decimal > & () const
 Gets the holded Array<Value::Decimal>. More...
 
 operator Array< Value::Decimal > & ()
 Gets the holded Array<Value::Decimal>. More...
 
 operator const Array< Value::Date > & () const
 Gets the holded Array<Value::Date>. More...
 
 operator Array< Value::Date > & ()
 Gets the holded Array<Value::Date>. More...
 
 operator const Array< Value::Time > & () const
 Gets the holded Array<Value::Time>. More...
 
 operator Array< Value::Time > & ()
 Gets the holded Array<Value::Time>. More...
 

Member Enumeration Documentation

◆ Alternative

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>.

◆ Space

enum C16::Variant::Space
strong

Space of a variant.

Enumerator
NONE 

Variant holds nothing.

VALUE 

Variant holds a Value.

ARRAY 

Variant holds an Array.

Constructor & Destructor Documentation

◆ Variant() [1/23]

C16::Variant::Variant ( )

Constructs a variant holding nothing.

◆ Variant() [2/23]

C16::Variant::Variant ( const Value::Alpha value)

Constructs a variant holding a Value::Alpha.

Parameters
valueValue::Alpha

◆ Variant() [3/23]

C16::Variant::Variant ( Value::Alpha::const_pointer  value)

Constructs a variant holding a Value::Alpha.

Parameters
valueValue::Alpha

◆ Variant() [4/23]

C16::Variant::Variant ( Value::Alpha value)

Constructs a variant holding a reference to a Value::Alpha.

Parameters
valueValue::Alpha

◆ Variant() [5/23]

C16::Variant::Variant ( Value::Logic  value)

Constructs a variant holding a Value::Logic.

Parameters
valueValue::Logic

◆ Variant() [6/23]

C16::Variant::Variant ( Value::Logic value)

Constructs a variant holding a reference to a Value::Logic.

Parameters
valueValue::Logic

◆ Variant() [7/23]

C16::Variant::Variant ( Value::Byte  value)

Constructs a variant holding a Value::Byte.

Parameters
valueValue::Byte

◆ Variant() [8/23]

C16::Variant::Variant ( Value::Byte value)

Constructs a variant holding a reference to a Value::Byte.

Parameters
valueValue::Byte

◆ Variant() [9/23]

C16::Variant::Variant ( Value::Word  value)

Constructs a variant holding a Value::Byte.

Parameters
valueValue::Byte

◆ Variant() [10/23]

C16::Variant::Variant ( Value::Word value)

Constructs a variant holding a reference to a Value::Word.

Parameters
valueValue::Word

◆ Variant() [11/23]

C16::Variant::Variant ( Value::Int  value)

Constructs a variant holding a Value::Int.

Parameters
valueValue::Int

◆ Variant() [12/23]

C16::Variant::Variant ( Value::Int value)

Constructs a variant holding a reference to a Value::Int.

Parameters
valueValue::Int

◆ Variant() [13/23]

C16::Variant::Variant ( Value::Bigint  value)

Constructs a variant holding a Value::Bigint.

Parameters
valueValue::Bigint

◆ Variant() [14/23]

C16::Variant::Variant ( Value::Bigint value)

Constructs a variant holding a reference to a Value::Bigint.

Parameters
valueValue::Bigint

◆ Variant() [15/23]

C16::Variant::Variant ( Value::Float  value)

Constructs a variant holding a Value::Float.

Parameters
valueValue::Float

◆ Variant() [16/23]

C16::Variant::Variant ( Value::Float value)

Constructs a variant holding a reference to a Value::Float.

Parameters
valueValue::Float

◆ Variant() [17/23]

C16::Variant::Variant ( const Value::Decimal value)

Constructs a variant holding a Value::Decimal.

Parameters
valueValue::Decimal

◆ Variant() [18/23]

C16::Variant::Variant ( Value::Decimal value)

Constructs a variant holding a reference to a Value::Decimal.

Parameters
valueValue::Decimal

◆ Variant() [19/23]

C16::Variant::Variant ( Value::Date  value)

Constructs a variant holding a Value::Date.

Parameters
valueValue::Date

◆ Variant() [20/23]

C16::Variant::Variant ( Value::Date value)

Constructs a variant holding a reference to a Value::Date.

Parameters
valueValue::Date

◆ Variant() [21/23]

C16::Variant::Variant ( Value::Time  value)

Constructs a variant holding a Value::Time.

Parameters
valueValue::Time

◆ Variant() [22/23]

C16::Variant::Variant ( Value::Time value)

Constructs a variant holding a reference to a Value::Time.

Parameters
valueValue::Time

◆ Variant() [23/23]

C16::Variant::Variant ( const Variant other)

Constructs a variant by copying another variant.

Parameters
otherAnother variant

Member Function Documentation

◆ alternative()

Alternative C16::Variant::alternative ( ) const

Gets the alternative of the variant.

◆ space()

Space C16::Variant::space ( ) const

Gets the space of the variant.

◆ type()

Type C16::Variant::type ( ) const

Gets the type of the variant.

◆ reference()

bool C16::Variant::reference ( ) const

Gets if the variant holds a reference.

◆ value() [1/2]

template<typename Value >
const Value& C16::Variant::value ( ) const

Gets the holded value of the variant.

Template Parameters
ValueType of the value
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a value of the type.
See also
value_alpha() const
value_logic() const
value_byte() const
value_word() const
value_int() const
value_bigint() const
value_float() const
value_decimal() const
value_date() const
value_time() const

◆ value() [2/2]

template<typename Value >
Value& C16::Variant::value ( )

Gets the holded value of the variant.

Template Parameters
ValueType of the value
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a value of the type.
See also
value_alpha()
value_logic()
value_byte()
value_word()
value_int()
value_bigint()
value_float()
value_decimal()
value_date()
value_time()

◆ value_const()

template<typename Value >
const Value& C16::Variant::value_const ( ) const

Gets the holded value of the variant.

Template Parameters
ValueType of the value
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a value of the type.
Note
This function is used to get a constant value of the non-constant variant.
See also
value_alpha_const() const
value_logic_const() const
value_byte_const() const
value_word_const() const
value_int_const() const
value_bigint_const() const
value_float_const() const
value_decimal_const() const
value_date_const() const
value_time_const() const

◆ value_alpha() [1/2]

const Value::Alpha& C16::Variant::value_alpha ( ) const

Short name alias for value<Value::Alpha>() const.

◆ value_alpha() [2/2]

Value::Alpha& C16::Variant::value_alpha ( )

Short name alias for value<Value::Alpha>().

◆ value_alpha_const()

const Value::Alpha& C16::Variant::value_alpha_const ( ) const

Short name alias for value<Value::Alpha>() const.

Note
This function is used to get a constant Value::Alpha of the non-constant variant.

◆ value_logic() [1/2]

const Value::Logic& C16::Variant::value_logic ( ) const

Short name alias for value<Value::Logic>() const.

◆ value_logic() [2/2]

Value::Logic& C16::Variant::value_logic ( )

Short name alias for value<Value::Logic>().

◆ value_logic_const()

const Value::Logic& C16::Variant::value_logic_const ( ) const

Short name alias for value<Value::Logic>() const.

Note
This function is used to get a constant Value::Logic of the non-constant variant.

◆ value_byte() [1/2]

const Value::Byte& C16::Variant::value_byte ( ) const

Short name alias for value<Value::Byte>() const.

◆ value_byte() [2/2]

Value::Byte& C16::Variant::value_byte ( )

Short name alias for value<Value::Byte>().

◆ value_byte_const()

const Value::Byte& C16::Variant::value_byte_const ( ) const

Short name alias for value<Value::Byte>() const.

Note
This function is used to get a constant Value::Byte of the non-constant variant.

◆ value_word() [1/2]

const Value::Word& C16::Variant::value_word ( ) const

Short name alias for value<Value::Word>() const.

◆ value_word() [2/2]

Value::Word& C16::Variant::value_word ( )

Short name alias for value<Value::Word>().

◆ value_word_const()

const Value::Word& C16::Variant::value_word_const ( ) const

Short name alias for value<Value::Word>() const.

Note
This function is used to get a constant Value::Word of the non-constant variant.

◆ value_int() [1/2]

const Value::Int& C16::Variant::value_int ( ) const

Short name alias for value<Value::Int>() const.

◆ value_int() [2/2]

Value::Int& C16::Variant::value_int ( )

Short name alias for value<Value::Int>().

◆ value_int_const()

const Value::Int& C16::Variant::value_int_const ( ) const

Short name alias for value<Value::Int>() const.

Note
This function is used to get a constant Value::Int of the non-constant variant.

◆ value_bigint() [1/2]

const Value::Bigint& C16::Variant::value_bigint ( ) const

Short name alias for value<Value::Bigint>() const.

◆ value_bigint() [2/2]

Value::Bigint& C16::Variant::value_bigint ( )

Short name alias for value<Value::Bigint>().

◆ value_bigint_const()

const Value::Bigint& C16::Variant::value_bigint_const ( ) const

Short name alias for value<Value::Bigint>() const.

Note
This function is used to get a constant Value::Bigint of the non-constant variant.

◆ value_float() [1/2]

const Value::Float& C16::Variant::value_float ( ) const

Short name alias for value<Value::Float>() const.

◆ value_float() [2/2]

Value::Float& C16::Variant::value_float ( )

Short name alias for value<Value::Float>().

◆ value_float_const()

const Value::Float& C16::Variant::value_float_const ( ) const

Short name alias for value<Value::Float>() const.

Note
This function is used to get a constant Value::Float of the non-constant variant.

◆ value_decimal() [1/2]

const Value::Decimal& C16::Variant::value_decimal ( ) const

Short name alias for value<Value::Decimal>() const.

◆ value_decimal() [2/2]

Value::Decimal& C16::Variant::value_decimal ( )

Short name alias for value<Value::Decimal>().

◆ value_decimal_const()

const Value::Decimal& C16::Variant::value_decimal_const ( ) const

Short name alias for value<Value::Decimal>() const.

Note
This function is used to get a constant Value::Decimal of the non-constant variant.

◆ value_date() [1/2]

const Value::Date& C16::Variant::value_date ( ) const

Short name alias for value<Value::Date>() const.

◆ value_date() [2/2]

Value::Date& C16::Variant::value_date ( )

Short name alias for value<Value::Date>().

◆ value_date_const()

const Value::Date& C16::Variant::value_date_const ( ) const

Short name alias for value<Value::Date>() const.

Note
This function is used to get a constant Value::Date of the non-constant variant.

◆ value_time() [1/2]

const Value::Time& C16::Variant::value_time ( ) const

Short name alias for value<Value::Time>() const.

◆ value_time() [2/2]

Value::Time& C16::Variant::value_time ( )

Short name alias for value<Value::Time>().

◆ value_time_const()

const Value::Time& C16::Variant::value_time_const ( ) const

Short name alias for value<Value::Time>() const.

Note
This function is used to get a constant Value::Time of the non-constant variant.

◆ operator const Value::Alpha &()

C16::Variant::operator const Value::Alpha & ( ) const

Gets the holded Value::Alpha.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Alpha.

◆ operator Value::Alpha &()

C16::Variant::operator Value::Alpha & ( )

Gets the holded Value::Alpha.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Alpha.

◆ operator const Value::Logic &()

C16::Variant::operator const Value::Logic & ( ) const

Gets the holded Value::Logic.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Logic.

◆ operator Value::Logic &()

C16::Variant::operator Value::Logic & ( )

Gets the holded Value::Logic.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Logic.

◆ operator const Value::Byte &()

C16::Variant::operator const Value::Byte & ( ) const

Gets the holded Value::Byte.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Byte.

◆ operator Value::Byte &()

C16::Variant::operator Value::Byte & ( )

Gets the holded Value::Byte.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Byte.

◆ operator const Value::Word &()

C16::Variant::operator const Value::Word & ( ) const

Gets the holded Value::Word.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Word.

◆ operator Value::Word &()

C16::Variant::operator Value::Word & ( )

Gets the holded Value::Word.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Word.

◆ operator const Value::Int &()

C16::Variant::operator const Value::Int & ( ) const

Gets the holded Value::Int.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Int.

◆ operator Value::Int &()

C16::Variant::operator Value::Int & ( )

Gets the holded Value::Int.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Int.

◆ operator const Value::Bigint &()

C16::Variant::operator const Value::Bigint & ( ) const

Gets the holded Value::Bigint.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Bigint.

◆ operator Value::Bigint &()

C16::Variant::operator Value::Bigint & ( )

Gets the holded Value::Bigint.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Bigint.

◆ operator const Value::Float &()

C16::Variant::operator const Value::Float & ( ) const

Gets the holded Value::Float.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Float.

◆ operator Value::Float &()

C16::Variant::operator Value::Float & ( )

Gets the holded Value::Float.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Float.

◆ operator const Value::Decimal &()

C16::Variant::operator const Value::Decimal & ( ) const

Gets the holded Value::Decimal.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Decimal.

◆ operator Value::Decimal &()

C16::Variant::operator Value::Decimal & ( )

Gets the holded Value::Decimal.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Decimal.

◆ operator const Value::Date &()

C16::Variant::operator const Value::Date & ( ) const

Gets the holded Value::Date.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Date.

◆ operator Value::Date &()

C16::Variant::operator Value::Date & ( )

Gets the holded Value::Date.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Date.

◆ operator const Value::Time &()

C16::Variant::operator const Value::Time & ( ) const

Gets the holded Value::Time.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Time.

◆ operator Value::Time &()

C16::Variant::operator Value::Time & ( )

Gets the holded Value::Time.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Value::Time.

◆ array() [1/2]

template<typename Value >
const Array<Value>& C16::Variant::array ( ) const

Gets the holded array of the variant.

Template Parameters
ValueType of the elements of the array
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold an array with elements of the type.

◆ array() [2/2]

template<typename Value >
Array<Value>& C16::Variant::array ( )

Gets the holded array of the variant.

Template Parameters
ValueType of the elements of the array
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold an array with elements of the type.

◆ array_const()

template<typename Value >
const Array<Value>& C16::Variant::array_const ( ) const

Gets the holded array of the variant.

Template Parameters
ValueType of the elements of the array
Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold an array with elements of the type.
Note
This function is used to get a constant array of the non-constant variant.

◆ array_alpha() [1/2]

const Array<Value::Alpha>& C16::Variant::array_alpha ( ) const

Short name alias for array<Value::Alpha>() const.

◆ array_alpha() [2/2]

Array<Value::Alpha>& C16::Variant::array_alpha ( )

Short name alias for array<Value::Alpha>().

◆ array_logic() [1/2]

const Array<Value::Logic>& C16::Variant::array_logic ( ) const

Short name alias for array<Value::Logic>() const.

◆ array_logic() [2/2]

Array<Value::Logic>& C16::Variant::array_logic ( )

Short name alias for array<Value::Logic>().

◆ array_byte() [1/2]

const Array<Value::Byte>& C16::Variant::array_byte ( ) const

Short name alias for array<Value::Byte>() const.

◆ array_byte() [2/2]

Array<Value::Byte>& C16::Variant::array_byte ( )

Short name alias for array<Value::Byte>().

◆ array_word() [1/2]

const Array<Value::Word>& C16::Variant::array_word ( ) const

Short name alias for array<Value::Word>() const.

◆ array_word() [2/2]

Array<Value::Word>& C16::Variant::array_word ( )

Short name alias for array<Value::Word>().

◆ array_int() [1/2]

const Array<Value::Int>& C16::Variant::array_int ( ) const

Short name alias for array<Value::Int>() const.

◆ array_int() [2/2]

Array<Value::Int>& C16::Variant::array_int ( )

Short name alias for array<Value::Int>().

◆ array_bigint() [1/2]

const Array<Value::Bigint>& C16::Variant::array_bigint ( ) const

Short name alias for array<Value::Bigint>() const.

◆ array_bigint() [2/2]

Array<Value::Bigint>& C16::Variant::array_bigint ( )

Short name alias for array<Value::Bigint>().

◆ array_float() [1/2]

const Array<Value::Float>& C16::Variant::array_float ( ) const

Short name alias for array<Value::Float>() const.

◆ array_float() [2/2]

Array<Value::Float>& C16::Variant::array_float ( )

Short name alias for array<Value::Float>().

◆ array_decimal() [1/2]

const Array<Value::Decimal>& C16::Variant::array_decimal ( ) const

Short name alias for array<Value::Decimal>() const.

◆ array_decimal() [2/2]

Array<Value::Decimal>& C16::Variant::array_decimal ( )

Short name alias for array<Value::Decimal>().

◆ array_date() [1/2]

const Array<Value::Date>& C16::Variant::array_date ( ) const

Short name alias for array<Value::Date>() const.

◆ array_date() [2/2]

Array<Value::Date>& C16::Variant::array_date ( )

Short name alias for array<Value::Date>().

◆ array_time() [1/2]

const Array<Value::Time>& C16::Variant::array_time ( ) const

Short name alias for array<Value::Time>() const.

◆ array_time() [2/2]

Array<Value::Time>& C16::Variant::array_time ( )

Short name alias for array<Value::Time>().

◆ operator const Array< Value::Alpha > &()

C16::Variant::operator const Array< Value::Alpha > & ( ) const

Gets the holded Array<Value::Alpha>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Alpha>.

◆ operator Array< Value::Alpha > &()

C16::Variant::operator Array< Value::Alpha > & ( )

Gets the holded Array<Value::Alpha>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Alpha>.

◆ operator const Array< Value::Logic > &()

C16::Variant::operator const Array< Value::Logic > & ( ) const

Gets the holded Array<Value::Logic>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Logic>.

◆ operator Array< Value::Logic > &()

C16::Variant::operator Array< Value::Logic > & ( )

Gets the holded Array<Value::Logic>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Logic>.

◆ operator const Array< Value::Byte > &()

C16::Variant::operator const Array< Value::Byte > & ( ) const

Gets the holded Array<Value::Byte>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Byte>.

◆ operator Array< Value::Byte > &()

C16::Variant::operator Array< Value::Byte > & ( )

Gets the holded Array<Value::Byte>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Byte>.

◆ operator const Array< Value::Word > &()

C16::Variant::operator const Array< Value::Word > & ( ) const

Gets the holded Array<Value::Word>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Word>.

◆ operator Array< Value::Word > &()

C16::Variant::operator Array< Value::Word > & ( )

Gets the holded Array<Value::Word>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Word>.

◆ operator const Array< Value::Int > &()

C16::Variant::operator const Array< Value::Int > & ( ) const

Gets the holded Array<Value::Int>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Int>.

◆ operator Array< Value::Int > &()

C16::Variant::operator Array< Value::Int > & ( )

Gets the holded Array<Value::Int>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Int>.

◆ operator const Array< Value::Bigint > &()

C16::Variant::operator const Array< Value::Bigint > & ( ) const

Gets the holded Array<Value::Bigint>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Bigint>.

◆ operator Array< Value::Bigint > &()

C16::Variant::operator Array< Value::Bigint > & ( )

Gets the holded Array<Value::Bigint>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Bigint>.

◆ operator const Array< Value::Float > &()

C16::Variant::operator const Array< Value::Float > & ( ) const

Gets the holded Array<Value::Float>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Float>.

◆ operator Array< Value::Float > &()

C16::Variant::operator Array< Value::Float > & ( )

Gets the holded Array<Value::Float>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Float>.

◆ operator const Array< Value::Decimal > &()

C16::Variant::operator const Array< Value::Decimal > & ( ) const

Gets the holded Array<Value::Decimal>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Decimal>.

◆ operator Array< Value::Decimal > &()

C16::Variant::operator Array< Value::Decimal > & ( )

Gets the holded Array<Value::Decimal>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Decimal>.

◆ operator const Array< Value::Date > &()

C16::Variant::operator const Array< Value::Date > & ( ) const

Gets the holded Array<Value::Date>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Date>.

◆ operator Array< Value::Date > &()

C16::Variant::operator Array< Value::Date > & ( )

Gets the holded Array<Value::Date>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Date>.

◆ operator const Array< Value::Time > &()

C16::Variant::operator const Array< Value::Time > & ( ) const

Gets the holded Array<Value::Time>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Time>.

◆ operator Array< Value::Time > &()

C16::Variant::operator Array< Value::Time > & ( )

Gets the holded Array<Value::Time>.

Exceptions
Exception::InaccessibilityAlternative inaccessible.
Variant does not hold a Array<Value::Time>.