|
Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
Generic value type that can hold values of all other types. More...
#include <aida.hh>
Inherited by Rapicorn::Aida::Any::Field.
Classes | |
| struct | Field |
| Any::Field is an Any with a std::string name attached. More... | |
Public Types | |
| typedef std::vector< Field > | FieldVector |
| Vector of fields (named Any structures) for use in RECORD types. | |
| typedef std::vector< Any > | AnyVector |
| Vector of Any structures for use in SEQUENCE types. | |
Public Member Functions | |
| ~Any () | |
| Any destructor. | |
| Any () | |
| Default initialize Any with no type. | |
| Any (const TypeCode &tc) | |
| Default initialize Any for a specific type. | |
| Any (const Any &clone) | |
| Carry out a deep copy of clone into a new Any. | |
| template<class V > | |
| Any (const V &value) | |
| Initialize Any with a value convertible to an Any. | |
| Any & | operator= (const Any &clone) |
| Carry out a deep copy of clone into this Any. | |
| bool | operator== (const Any &clone) const |
| Check if Any is exactly equal to clone. | |
| bool | operator!= (const Any &clone) const |
| Check if Any is not equal to clone, see operator==(). | |
| TypeCode | type () const |
| Obtain the full TypeCode for the contents of this Any. | |
| TypeKind | kind () const |
| Obtain the underlying primitive type kind. | |
| void | retype (const TypeCode &tc) |
| Force Any to assume type tc. | |
| void | swap (Any &other) |
| Swap the contents of this and other in constant time. | |
| bool | operator>>= (bool &v) const |
| bool | operator>>= (char &v) const |
| bool | operator>>= (unsigned char &v) const |
| bool | operator>>= (int32 &v) const |
| bool | operator>>= (uint32 &v) const |
| bool | operator>>= (LongIffy &v) const |
| bool | operator>>= (ULongIffy &v) const |
| bool | operator>>= (int64 &v) const |
| bool | operator>>= (uint64 &v) const |
| bool | operator>>= (float &v) const |
| bool | operator>>= (double &v) const |
| Extract a floating point number as double if possible. | |
| bool | operator>>= (EnumValue &v) const |
| Extract the numeric representation of an EnumValue if possible. | |
| bool | operator>>= (const char *&v) const |
| bool | operator>>= (std::string &v) const |
| Extract a std::string if possible. | |
| bool | operator>>= (const Any *&v) const |
| Extract an Any if possible. | |
| bool | operator>>= (const AnyVector *&v) const |
| Extract an AnyVector if possible (sequence type). | |
| bool | operator>>= (const FieldVector *&v) const |
| Extract a FieldVector if possible (record type). | |
| bool | operator>>= (SmartHandle &v) |
| String | to_string (const String &field_name="") const |
| Retrieve string representation of Any for printouts. | |
| const Any & | as_any () const |
| Obtain contents as Any. | |
| double | as_float () const |
| Obtain BOOL, INT*, or FLOAT* contents as double float. | |
| int64 | as_int () const |
| Obtain BOOL, INT* or FLOAT* contents as integer (yields 1 for non-empty strings). | |
| String | as_string () const |
| Obtain BOOL, INT*, FLOAT* or STRING contents as string. | |
| void | operator<<= (bool v) |
| void | operator<<= (char v) |
| void | operator<<= (unsigned char v) |
| void | operator<<= (int32 v) |
| void | operator<<= (uint32 v) |
| void | operator<<= (LongIffy v) |
| void | operator<<= (ULongIffy v) |
| void | operator<<= (int64 v) |
| Store a 64bit signed integer. | |
| void | operator<<= (uint64 v) |
| Store a 64bit unsigned integer. | |
| void | operator<<= (float v) |
| void | operator<<= (double v) |
| Store a double floating point number. | |
| void | operator<<= (const EnumValue &v) |
| Store the numeric representation of an EnumValue. | |
| void | operator<<= (const char *v) |
| void | operator<<= (char *v) |
| void | operator<<= (const String &v) |
| Store a std::string. | |
| void | operator<<= (const Any &v) |
| Store an Any. | |
| void | operator<<= (const AnyVector &v) |
| Store a sequence of Any structures (sequence type). | |
| void | operator<<= (const FieldVector &v) |
| Store a sequence of Any::Field structures (record type). | |
| void | operator<<= (const SmartHandle &v) |
Protected Member Functions | |
| bool | plain_zero_type (TypeKind kind) |
Static Protected Member Functions | |
| template<class Rec > | |
| static void | any_from_record (Any &any, const Rec &struct) |
| template<class Rec > | |
| static void | any_to_record (Any &any, Rec &struct) |
Generic value type that can hold values of all other types.
1.7.6.1