![]() |
B2BITS FIX Antenna C++ 2.34.0
|
Represents entity with three states - undefined, empty and assigned. More...
#include <B2BITS_NullableValue.h>
Public Types | |
| typedef NullableValue< value_type > | _Myt |
| Self type. | |
| typedef T | value_type |
| Type of the stored value. | |
Public Member Functions | |
| bool | equals (const _Myt &rv) const |
| Compares two objects. | |
| value_type * | get () |
| Returns stored value If value is undefined or empty, std::exception is raised. | |
| const value_type * | get () const |
| Returns stored value If value is undefined or empty, std::exception is raised. | |
| bool | hasValue () const |
| Returns true if value assigned and is not empty. | |
| bool | isDefined () const |
| Returns true if value assigned. | |
| bool | isEmpty () const |
| Returns true if value assigned with empty value. | |
| NullableValue () | |
| Default constructor. | |
| template<typename Other > | |
| NullableValue (const Emptily< Other > &value) | |
| Generic copy constructor. | |
| NullableValue (const Emptily< value_type > &value) | |
| Conversion constructor. | |
| template<typename Other > | |
| NullableValue (const NullableValue< Other > &value) | |
| Generic copy constructor. | |
| template<typename Other > | |
| NullableValue (const Other &value) | |
| Generic conversion constructor. | |
| NullableValue (EmptyValue) | |
| Conversion constructor. | |
| NullableValue (UndefinedValue) | |
| Conversion constructor. | |
| NullableValue (value_type value) | |
| Conversion constructor. | |
| bool | operator!= (const _Myt &rv) const |
| Compare operator. | |
| value_type & | operator* () |
| Returns stored value If value is undefined or empty, std::exception is raised. | |
| const value_type & | operator* () const |
| Returns stored value If value is undefined or empty, std::exception is raised. | |
| value_type * | operator-> () |
| Selector operator. | |
| const value_type * | operator-> () const |
| Selector operator. | |
| _Myt & | operator= (const _Myt &value) |
| Assign operator. | |
| template<typename Other > | |
| _Myt & | operator= (const Emptily< Other > &value) |
| Assign operator. | |
| _Myt & | operator= (const Emptily< value_type > &value) |
| Assign operator. | |
| template<typename Other > | |
| _Myt & | operator= (const NullableValue< Other > &value) |
| Assign operator. | |
| template<typename Other > | |
| _Myt & | operator= (const Other &value) |
| Assign operator. | |
| _Myt & | operator= (const value_type &value) |
| Assign operator. | |
| _Myt & | operator= (EmptyValue) |
| Assign operator. | |
| _Myt & | operator= (UndefinedValue) |
| Assign operator. | |
| bool | operator== (const _Myt &rv) const |
| Compare operator. | |
| void | reset () |
| Resets object to undefined state. | |
| ValueState | state () const |
| Returns state of the object. | |
Represents entity with three states - undefined, empty and assigned.
| typedef NullableValue<value_type> Utils::NullableValue< T >::_Myt |
Self type.
| typedef T Utils::NullableValue< T >::value_type |
Type of the stored value.
|
inline |
Conversion constructor.
|
inline |
Conversion constructor.
|
inline |
Conversion constructor.
|
inline |
Conversion constructor.
|
inline |
Generic conversion constructor.
|
inline |
Generic copy constructor.
|
inline |
Generic copy constructor.
|
inline |
Default constructor.
|
inline |
Compares two objects.
References Utils::vsAssigned.
Referenced by Utils::NullableValue< T >::operator!=(), and Utils::NullableValue< T >::operator==().
|
inline |
Returns stored value If value is undefined or empty, std::exception is raised.
References Utils::vsAssigned.
Referenced by Utils::NullableValue< T >::operator*(), Utils::NullableValue< T >::operator*(), Utils::NullableValue< T >::operator->(), and Utils::NullableValue< T >::operator->().
|
inline |
Returns stored value If value is undefined or empty, std::exception is raised.
References Utils::vsAssigned.
|
inline |
Returns true if value assigned and is not empty.
References Utils::vsAssigned.
|
inline |
Returns true if value assigned.
References Utils::vsUndefined.
Referenced by Utils::Emptily< T >::Emptily().
|
inline |
Returns true if value assigned with empty value.
References Utils::vsEmpty.
|
inline |
Compare operator.
References Utils::NullableValue< T >::equals().
|
inline |
Returns stored value If value is undefined or empty, std::exception is raised.
References Utils::NullableValue< T >::get().
|
inline |
Returns stored value If value is undefined or empty, std::exception is raised.
References Utils::NullableValue< T >::get().
|
inline |
Selector operator.
References Utils::NullableValue< T >::get().
|
inline |
Selector operator.
References Utils::NullableValue< T >::get().
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
|
inline |
Assign operator.
References Utils::vsEmpty.
|
inline |
Assign operator.
References Utils::vsUndefined.
|
inline |
Compare operator.
References Utils::NullableValue< T >::equals().
|
inline |
Resets object to undefined state.
References Utils::vsUndefined.
|
inline |
Returns state of the object.