#include <safe_any.hpp>
Public Member Functions | |
Any () | |
Any (const Any &other) | |
Any (Any &&other) | |
Any (const double &value) | |
Any (const uint64_t &value) | |
Any (const float &value) | |
Any (const std::string &str) | |
Any (const char *str) | |
Any (const SafeAny::SimpleString &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 & | castedType () const noexcept |
bool | empty () const noexcept |
bool | isNumber () const |
bool | isString () const |
Any & | operator= (const Any &other) |
const std::type_info & | type () const noexcept |
~Any () | |
Private Member Functions | |
template<typename DST > | |
nonstd::expected< DST, std::string > | convert (EnableString< DST >=0) const |
template<typename DST > | |
nonstd::expected< DST, std::string > | convert (EnableArithmetic< DST >=0) const |
template<typename DST > | |
nonstd::expected< DST, std::string > | convert (EnableEnum< DST >=0) const |
template<typename DST > | |
nonstd::expected< DST, std::string > | convert (EnableUnknownType< DST >=0) const |
template<typename T > | |
std::string | errorMsg () const |
Private Attributes | |
linb::any | _any |
const std::type_info * | _original_type |
Definition at line 22 of file safe_any.hpp.
BT::Any::Any | ( | ) | [inline] |
Definition at line 47 of file safe_any.hpp.
BT::Any::~Any | ( | ) |
BT::Any::Any | ( | const Any & | other | ) | [inline] |
Definition at line 53 of file safe_any.hpp.
BT::Any::Any | ( | Any && | other | ) | [inline] |
Definition at line 57 of file safe_any.hpp.
BT::Any::Any | ( | const double & | value | ) | [inline, explicit] |
Definition at line 61 of file safe_any.hpp.
BT::Any::Any | ( | const uint64_t & | value | ) | [inline, explicit] |
Definition at line 65 of file safe_any.hpp.
BT::Any::Any | ( | const float & | value | ) | [inline, explicit] |
Definition at line 69 of file safe_any.hpp.
BT::Any::Any | ( | const std::string & | str | ) | [inline, explicit] |
Definition at line 73 of file safe_any.hpp.
BT::Any::Any | ( | const char * | str | ) | [inline, explicit] |
Definition at line 77 of file safe_any.hpp.
BT::Any::Any | ( | const SafeAny::SimpleString & | str | ) | [inline, explicit] |
Definition at line 81 of file safe_any.hpp.
BT::Any::Any | ( | const T & | value, |
EnableIntegral< T > | = 0 |
||
) | [inline, explicit] |
Definition at line 87 of file safe_any.hpp.
BT::Any::Any | ( | const T & | value, |
EnableNonIntegral< T > | = 0 |
||
) | [inline, explicit] |
Definition at line 93 of file safe_any.hpp.
T BT::Any::cast | ( | ) | const [inline] |
Definition at line 119 of file safe_any.hpp.
const std::type_info& BT::Any::castedType | ( | ) | const [inline] |
Definition at line 145 of file safe_any.hpp.
nonstd::expected<DST,std::string> BT::Any::convert | ( | EnableString< DST > | = 0 | ) | const [inline, private] |
Definition at line 162 of file safe_any.hpp.
nonstd::expected<DST,std::string> BT::Any::convert | ( | EnableArithmetic< DST > | = 0 | ) | const [inline, private] |
Definition at line 187 of file safe_any.hpp.
nonstd::expected<DST,std::string> BT::Any::convert | ( | EnableEnum< DST > | = 0 | ) | const [inline, private] |
Definition at line 213 of file safe_any.hpp.
nonstd::expected<DST,std::string> BT::Any::convert | ( | EnableUnknownType< DST > | = 0 | ) | const [inline, private] |
Definition at line 234 of file safe_any.hpp.
bool BT::Any::empty | ( | ) | const [inline] |
Definition at line 150 of file safe_any.hpp.
std::string BT::Any::errorMsg | ( | ) | const [inline, private] |
Definition at line 240 of file safe_any.hpp.
bool BT::Any::isNumber | ( | ) | const [inline] |
Definition at line 104 of file safe_any.hpp.
bool BT::Any::isString | ( | ) | const [inline] |
Definition at line 111 of file safe_any.hpp.
Definition at line 97 of file safe_any.hpp.
const std::type_info& BT::Any::type | ( | ) | const [inline] |
Definition at line 140 of file safe_any.hpp.
linb::any BT::Any::_any [private] |
Definition at line 156 of file safe_any.hpp.
const std::type_info* BT::Any::_original_type [private] |
Definition at line 157 of file safe_any.hpp.