|
| Element () |
| Construct an empty object. More...
|
|
| Element (const Element &obj) |
| Copy an existing object. More...
|
|
| Element (Element &&obj) noexcept |
|
| Element (int v) |
| Set type to int, and value to v. More...
|
|
| Element (long v) |
|
| Element (long long v) |
|
| Element (bool v) |
| Set type to int, and value to v. More...
|
|
| Element (FloatType v) |
| Set type to double, and value to v. More...
|
|
| Element (PtrType v) |
| Set type to PtrType, and value to v. More...
|
|
| Element (const char *v) |
| Set type to std::string, and value to v. More...
|
|
| Element (const StringType &v) |
| Set type to std::string, and value to v. More...
|
|
| Element (StringType &&v) |
| Set type to std::string, and move v. More...
|
|
| Element (const MapType &v) |
| Set type to MapType, and value to v. More...
|
|
| Element (MapType &&v) |
| Set type to MapType, and move v. More...
|
|
| Element (const ListType &v) |
| Set type to ListType, and value to v. More...
|
|
| Element (ListType &&v) |
| Set type to ListType, and move v. More...
|
|
Element & | operator= (const Element &obj) |
| overload assignment operator ! More...
|
|
Element & | operator= (Element &&obj) noexcept |
|
Element & | operator= (int v) |
|
Element & | operator= (long v) |
|
Element & | operator= (long long v) |
|
Element & | operator= (bool v) |
|
Element & | operator= (FloatType v) |
|
Element & | operator= (PtrType v) |
|
Element & | operator= (const char *v) |
|
Element & | operator= (const StringType &v) |
|
Element & | operator= (StringType &&v) |
|
Element & | operator= (const MapType &v) |
|
Element & | operator= (MapType &&v) |
|
Element & | operator= (const ListType &v) |
|
Element & | operator= (ListType &&v) |
|
bool | operator== (const Element &o) const |
| Check for equality with another Element. More...
|
|
template<class C > |
bool | operator!= (C c) const |
| Check for inequality with anything we can check equality with. More...
|
|
bool | operator== (int v) const |
| Check for equality with a int. More...
|
|
bool | operator== (long v) const |
| Check for equality with a int. More...
|
|
bool | operator== (long long v) const |
|
bool | operator== (FloatType v) const |
| Check for equality with a double. More...
|
|
bool | operator== (PtrType v) const |
| Check for equality with a pointer. More...
|
|
bool | operator== (const char *v) const |
| Check for equality with a const char *. More...
|
|
bool | operator== (const StringType &v) const |
| Check for equality with a std::string. More...
|
|
bool | operator== (const MapType &v) const |
| Check for equality with a MapType. More...
|
|
bool | operator== (const ListType &v) const |
| Check for equality with a ListType. More...
|
|
Type | getType () const |
| Get the current type. More...
|
|
bool | isNone () const |
| Check whether the current type is nothing. More...
|
|
bool | isInt () const |
| Check whether the current type is int. More...
|
|
bool | isFloat () const |
| Check whether the current type is double. More...
|
|
bool | isPtr () const |
| Check whether the current type is pointer. More...
|
|
bool | isNum () const |
| Check whether the current type is numeric. More...
|
|
bool | isString () const |
| Check whether the current type is std::string. More...
|
|
bool | isMap () const |
| Check whether the current type is MapType. More...
|
|
bool | isList () const |
| Check whether the current type is ListType. More...
|
|
IntType | asInt () const |
| Retrieve the current value as a int. More...
|
|
IntType | Int () const |
|
FloatType | asFloat () const |
| Retrieve the current value as a double. More...
|
|
FloatType | Float () const |
|
PtrType | asPtr () const |
| Retrieve the current value as a pointer. More...
|
|
PtrType | Ptr () const |
|
FloatType | asNum () const |
| Retrieve the current value as a number. More...
|
|
const std::string & | asString () const |
| Retrieve the current value as a const std::string reference. More...
|
|
std::string & | asString () |
| Retrieve the current value as a non-const std::string reference. More...
|
|
const StringType & | String () const |
|
StringType & | String () |
|
StringType && | moveString () |
|
const MapType & | asMap () const |
| Retrieve the current value as a const MapType reference. More...
|
|
MapType & | asMap () |
| Retrieve the current value as a non-const MapType reference. More...
|
|
const MapType & | Map () const |
|
MapType & | Map () |
|
MapType && | moveMap () |
|
const ListType & | asList () const |
| Retrieve the current value as a const ListType reference. More...
|
|
ListType & | asList () |
| Retrieve the current value as a non-const ListType reference. More...
|
|
const ListType & | List () const |
|
ListType & | List () |
|
ListType && | moveList () |
|
Multi-type container
Definition at line 38 of file Element.h.