B2BITS FIX Antenna C++ 2.33.0
|
Represents entity with two states - initialized and not initialized. More...
#include <B2BITS_Emptily.h>
Public Types | |
typedef Emptily< value_type > | _Myt |
Self type. | |
typedef T | value_type |
Type of the store value. | |
Public Member Functions | |
Emptily () | |
Default constructor. | |
template<typename Other > | |
Emptily (const Emptily< Other > &other) | |
Generic copy constructor. | |
template<typename Other > | |
Emptily (const Other &other) | |
Generic conversion constructor. | |
Emptily (const Utils::NullableValue< T > &value) | |
Explicit conversion constructor from NullableValue User cannot pass NullableValue with undefined state. | |
Emptily (const value_type &value) | |
Conversion constructor. | |
Emptily (const value_type &value, bool aIsEmpty) | |
Initializes object with value and flag. | |
Emptily (Utils::EmptyValue) | |
Conversion constructor Allow user to use "empty" identifier instead of Emptily. | |
bool | equals (const _Myt &rv) const |
Compares two Emptilies. | |
T * | get () |
Returns pointer to strored value If value was not assigned, std::exception will be raised. | |
const T * | get () const |
Returns pointer to strored value If value was not assigned, std::exception will be raised. | |
bool | hasValue () const |
Returns true if value WAS assigned. | |
void | init () |
Initializes object with default value. | |
bool | isEmpty () const |
Returns true if value was NOT assigned. | |
bool | operator!= (const _Myt &rv) const |
Compare operator Compares two emptilies. | |
T & | operator* () |
Returns strored value If value was not assigned, std::exception will be raised. | |
const T & | operator* () const |
Returns strored value If value was not assigned, std::exception will be raised. | |
T * | operator-> () |
Selector. | |
const T * | operator-> () const |
Const selector. | |
_Myt & | operator= (const _Myt &value) |
Assign operator. | |
template<typename Other > | |
_Myt & | operator= (const Emptily< Other > &value) |
Generic assign operator for Emptily. | |
template<typename Other > | |
_Myt & | operator= (const Other &value) |
Generic assign operator. | |
_Myt & | operator= (const Utils::NullableValue< T > &value) |
Assign operator. | |
_Myt & | operator= (const value_type &value) |
Assign operator. | |
_Myt & | operator= (Utils::EmptyValue) |
Assign operator for "empty" identifier. | |
bool | operator== (const _Myt &rv) const |
Compare operator Compares two emptilies. | |
Represents entity with two states - initialized and not initialized.
typedef Emptily<value_type> Utils::Emptily< T >::_Myt |
Self type.
typedef T Utils::Emptily< T >::value_type |
Type of the store value.
|
inline |
Conversion constructor.
Converts value_type to self type.
|
inline |
Conversion constructor Allow user to use "empty" identifier instead of Emptily.
|
inline |
Initializes object with value and flag.
|
inline |
Default constructor.
|
inline |
Generic copy constructor.
|
inline |
Generic conversion constructor.
|
inlineexplicit |
Explicit conversion constructor from NullableValue User cannot pass NullableValue with undefined state.
References Utils::NullableValue< T >::isDefined().
|
inline |
Compares two Emptilies.
Referenced by Utils::Emptily< T >::operator!=(), and Utils::Emptily< T >::operator==().
|
inline |
Returns pointer to strored value If value was not assigned, std::exception will be raised.
Referenced by Utils::Emptily< T >::operator*(), Utils::Emptily< T >::operator*(), Utils::Emptily< T >::operator->(), and Utils::Emptily< T >::operator->().
|
inline |
Returns pointer to strored value If value was not assigned, std::exception will be raised.
|
inline |
Returns true if value WAS assigned.
|
inline |
Initializes object with default value.
|
inline |
Returns true if value was NOT assigned.
Referenced by Utils::operator<<().
|
inline |
Compare operator Compares two emptilies.
References Utils::Emptily< T >::equals().
|
inline |
Returns strored value If value was not assigned, std::exception will be raised.
References Utils::Emptily< T >::get().
|
inline |
Returns strored value If value was not assigned, std::exception will be raised.
References Utils::Emptily< T >::get().
|
inline |
Selector.
References Utils::Emptily< T >::get().
|
inline |
Const selector.
References Utils::Emptily< T >::get().
|
inline |
Assign operator.
|
inline |
Generic assign operator for Emptily.
|
inline |
Generic assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator for "empty" identifier.
|
inline |
Compare operator Compares two emptilies.
References Utils::Emptily< T >::equals().