#include <safe_any.hpp>
Public Member Functions | |
Any () | |
Any (const double &value) | |
Any (const uint64_t &value) | |
Any (const float &value) | |
Any (const std::string &str) | |
template<typename T > | |
Any (const T &value, EnableIntegral< T >=0) | |
template<typename T > | |
Any (const T &value, EnableNonIntegral< T >=0) | |
template<typename T > | |
T | cast () const |
const std::type_info & | type () const noexcept |
~Any () | |
Private Member Functions | |
template<typename DST > | |
DST | convert (EnableString< DST >=0) const |
template<typename DST > | |
DST | convert (EnableArithmetic< DST >=0) const |
template<typename DST > | |
DST | convert (EnableEnum< DST >=0) const |
template<typename DST > | |
DST | convert (EnableUnknownType< DST >=0) const |
template<typename T > | |
std::runtime_error | errorMsg () const |
Private Attributes | |
linb::any | _any |
Definition at line 19 of file safe_any.hpp.
SafeAny::Any::Any | ( | ) | [inline] |
Definition at line 44 of file safe_any.hpp.
SafeAny::Any::Any | ( | const double & | value | ) | [inline] |
Definition at line 50 of file safe_any.hpp.
SafeAny::Any::Any | ( | const uint64_t & | value | ) | [inline] |
Definition at line 54 of file safe_any.hpp.
SafeAny::Any::Any | ( | const float & | value | ) | [inline] |
Definition at line 58 of file safe_any.hpp.
SafeAny::Any::Any | ( | const std::string & | str | ) | [inline] |
Definition at line 62 of file safe_any.hpp.
SafeAny::Any::Any | ( | const T & | value, |
EnableIntegral< T > | = 0 |
||
) | [inline, explicit] |
Definition at line 68 of file safe_any.hpp.
SafeAny::Any::Any | ( | const T & | value, |
EnableNonIntegral< T > | = 0 |
||
) | [inline, explicit] |
Definition at line 74 of file safe_any.hpp.
T SafeAny::Any::cast | ( | ) | const [inline] |
Definition at line 81 of file safe_any.hpp.
DST SafeAny::Any::convert | ( | EnableString< DST > | = 0 | ) | const [inline, private] |
Definition at line 104 of file safe_any.hpp.
DST SafeAny::Any::convert | ( | EnableArithmetic< DST > | = 0 | ) | const [inline, private] |
Definition at line 129 of file safe_any.hpp.
DST SafeAny::Any::convert | ( | EnableEnum< DST > | = 0 | ) | const [inline, private] |
Definition at line 156 of file safe_any.hpp.
DST SafeAny::Any::convert | ( | EnableUnknownType< DST > | = 0 | ) | const [inline, private] |
Definition at line 177 of file safe_any.hpp.
std::runtime_error SafeAny::Any::errorMsg | ( | ) | const [inline, private] |
Definition at line 183 of file safe_any.hpp.
const std::type_info& SafeAny::Any::type | ( | ) | const [inline] |
Definition at line 93 of file safe_any.hpp.
linb::any SafeAny::Any::_any [private] |
Definition at line 99 of file safe_any.hpp.