Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
Representation of type information to describe structured type compositions and for the Any class. More...
#include <aida.hh>
Public Member Functions | |
TypeCode (const TypeCode &) | |
bool | operator!= (const TypeCode &) const |
bool | operator== (const TypeCode &) const |
TypeCode & | operator= (const TypeCode &) |
void | swap (TypeCode &other) |
Swap the contents of this and other in constant time. | |
TypeKind | kind () const |
Obtain the underlying primitive type kind. | |
std::string | kind_name () const |
Obtain the name of kind(). | |
std::string | name () const |
Obtain the type name. | |
size_t | aux_count () const |
Number of items of auxillary data. | |
std::string | aux_data (size_t index) const |
Accessor for auxillary data as key=utf8data string. | |
std::string | aux_value (std::string key) const |
Accessor for auxillary data by key as utf8 string. | |
std::string | hints () const |
Obtain "hints" aux_value(), enclosed in two ':'. | |
size_t | prerequisite_count () const |
Number of interface prerequisites. | |
std::string | prerequisite (size_t index) const |
Obtain prerequisite type names for an interface type. | |
size_t | field_count () const |
Number of fields in a record type. | |
TypeCode | field (size_t index) const |
Obtain field type for a record or sequence type. | |
std::string | origin () const |
Obtain the type origin for a TYPE_REFERENCE (fields). | |
TypeCode | resolve () const |
Returns type code after resolving kind TYPE_REFERENCE. | |
bool | untyped () const |
Checks whether the TypeCode is undefined. | |
std::string | pretty (const std::string &indent="") const |
Pretty print into a string. | |
bool | enum_combinable () const |
Indicate if multiple enum values are combinable into a mask. | |
size_t | enum_count () const |
Number of enum values for an enum type. | |
EnumValue | enum_value (size_t index) const |
Obtain an enum value as: (value, ident, label, blurb) | |
EnumValue | enum_find (int64 value) const |
Find first enum value equal to value. | |
EnumValue | enum_find (const String &name) const |
Find first enum value matching name. | |
String | enum_string (int64 value) const |
Convert enum value to string, possibly combining identifiers. | |
int64 | enum_parse (const String &value_string, String *error=NULL) const |
Parse an enum_string() result. | |
Static Public Member Functions | |
template<class E > | |
static TypeCode | from_enum () |
Retrieve a TypeCode by giving the enum C++ type. |
Representation of type information to describe structured type compositions and for the Any class.