|
| | AnyValue () |
| |
| | AnyValue (const AnyValue &b) |
| |
| | AnyValue (const AnyReference &b, bool copy, bool free) |
| |
| | AnyValue (const AutoAnyReference &b) |
| |
| | AnyValue (qi::TypeInterface *type) |
| |
| AnyReference | release () |
| |
| | ~AnyValue () |
| |
| AnyValue & | operator= (const AnyReference &b) |
| |
| AnyValue & | operator= (const AnyValue &b) |
| |
| void | reset () |
| |
| void | reset (qi::TypeInterface *type) |
| |
| template<typename T > |
| void | set (const T &t) |
| |
| void | reset (const AnyReference &src) |
| |
| void | reset (const AnyReference &src, bool copy, bool free) |
| |
| void | swap (AnyValue &b) |
| |
| AnyReference | asReference () const |
| |
| qi::Signature | signature (bool resolveDynamic=false) const |
| |
| TypeKind | kind () const |
| |
| AnyReference | unwrap () const |
| |
| void | update (const AutoAnyReference &b) |
| |
| template<typename T > |
| void | set (const T &val) |
| | Update the value to val, which will be converted if required. More...
|
| |
| void | set (int64_t v) |
| |
| void | set (int32_t v) |
| |
| void | set (uint64_t v) |
| |
| void | set (uint32_t v) |
| |
| void | set (float v) |
| |
| void | set (double v) |
| |
| void | set (const std::string &v) |
| |
| void | setInt (int64_t v) |
| |
| void | setUInt (uint64_t v) |
| |
| void | setFloat (float v) |
| |
| void | setDouble (double v) |
| |
| void | setString (const std::string &v) |
| |
| void | setDynamic (const AnyReference &value) |
| |
| void | setRaw (const char *buffer, size_t size) |
| |
| void | setTuple (const AnyReferenceVector &values) |
| |
| TypeInterface * | type () const |
| |
| std::vector< TypeInterface * > | membersType () const |
| |
| void * | rawValue () const |
| |
| template<> |
| void | to () const |
| |
| template<typename T > |
| T | to () const |
| | Convert to anything or throw trying. More...
|
| |
| template<typename T > |
| T | to (const T &) const |
| | Similar to previous method, but uses a dummy value to get the target type. More...
|
| |
| int64_t | toInt () const |
| |
| uint64_t | toUInt () const |
| |
| float | toFloat () const |
| |
| double | toDouble () const |
| |
| std::string | toString () const |
| |
| template<typename T > |
| std::vector< T > | toList () const |
| |
| template<typename K , typename V > |
| std::map< K, V > | toMap () const |
| |
| AnyObject | toObject () const |
| |
| AnyValue | toTuple (bool homogeneous) const |
| |
| template<typename T > |
| T & | as () |
| |
| int64_t & | asInt64 () |
| |
| uint64_t & | asUInt64 () |
| |
| int32_t & | asInt32 () |
| |
| uint32_t & | asUInt32 () |
| |
| int16_t & | asInt16 () |
| |
| uint16_t & | asUInt16 () |
| |
| int8_t & | asInt8 () |
| |
| uint8_t & | asUInt8 () |
| |
| double & | asDouble () |
| |
| float & | asFloat () |
| |
| std::string & | asString () |
| |
| std::pair< char *, size_t > | asRaw () const |
| |
| AnyReference | content () const |
| |
| AnyReferenceVector | asTupleValuePtr () |
| |
| AnyReferenceVector | asListValuePtr () |
| |
std::map< AnyReference,
AnyReference > | asMapValuePtr () |
| |
| template<typename K > |
| AnyReference | operator[] (const K &key) |
| |
| AnyReference | operator[] (const AnyReference &key) |
| |
| template<typename E , typename K > |
| E & | element (const K &key) |
| | Call operator[](key).as<E>, element type must match E. More...
|
| |
| template<typename K > |
| AnyReference | at (const K &key) |
| |
| template<typename K > |
| AnyReference | at (const K &key) const |
| |
| AnyReference | at (const AnyReference &key) |
| |
| AnyReference | at (const AnyReference &key) const |
| |
| size_t | size () const |
| |
| template<typename T > |
| void | append (const T &element) |
| |
| void | append (const AnyReference &element) |
| |
| template<typename K , typename V > |
| void | insert (const K &key, const V &val) |
| |
| void | insert (const AnyReference &key, const AnyReference &val) |
| |
| template<typename K > |
| AnyReference | find (const K &key) |
| |
| AnyIterator | begin () const |
| | Return an iterator on the beginning of the container. More...
|
| |
| AnyIterator | end () const |
| | Return an iterator on the end of the container. More...
|
| |
| AnyReference | operator* () const |
| | Dereference pointer, iterator or dynamic. More...
|
| |
| std::pair< AnyReference, bool > | convert (TypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (ListTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (StructTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (MapTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (IntTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (FloatTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (RawTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (StringTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (PointerTypeInterface *targetType) const |
| |
| std::pair< AnyReference, bool > | convert (DynamicTypeInterface *targetType) const |
| |
| template<typename T > |
| T * | ptr (bool check=true) |
| |
| bool | isValid () const |
| |
| bool | isValue () const |
| |
| AnyReference | convertCopy (TypeInterface *targetType) const |
| | Helper function that converts and always clone. More...
|
| |
| AnyReference | clone () const |
| |
| void | destroy () |
| | Deletes storage. More...
|
| |
|
| template<typename T > |
| static AnyValue | make () |
| | Create and return a AnyValue of type T. More...
|
| |
| static AnyValue | makeVoid () |
| | Construct a void AnyValue: defined, but with no data. More...
|
| |
| template<typename T > |
| static AnyValue | from (const T &r) |
| |
|
| static AnyValue | makeTuple (const AnyReferenceVector &values) |
| |
| static AnyValue | makeTupleFromValue (const AutoAnyReference &v0, const AutoAnyReference &v1, const AutoAnyReference &v2, const AutoAnyReference &v3, const AutoAnyReference &v4, const AutoAnyReference &v5, const AutoAnyReference &v6, const AutoAnyReference &v7, const AutoAnyReference &v8, const AutoAnyReference &v9) |
| |
| template<typename T > |
| static AnyValue | makeList (const AnyReferenceVector &values) |
| |
| static AnyValue | makeGenericList (const AnyReferenceVector &values) |
| |
| template<typename K , typename V > |
| static AnyValue | makeMap (const std::map< AnyReference, AnyReference > &values) |
| |
| static AnyValue | makeGenericMap (const std::map< AnyReference, AnyReference > &values) |
| |
| template<typename T > |
| static AnyReference | from (const T &ref) |
| |
| template<typename T > |
| static AnyReference | fromPtr (const T *ptr) |
| |
Represent any value supported by the typesystem. when constructed or set the value is copied. as a pointer to the real value. to convert the value if needed and copy to the required type.
Definition at line 19 of file anyvalue.hpp.