Mirror reflection library 0.5.13
|
MetaFreeVariable is a type reflecting free variable. More...
#include <mirror/doc/concepts.hpp>
Public Types | |
typedef MetaNamespace | scope |
Reflects the namespace to which the reflected variable belongs. | |
typedef StorageClassTag | storage_class |
The storage class tag. | |
typedef MetaType | type |
MetaType reflecting the type of the variable. | |
Static Public Member Functions | |
static Type | get (void) |
Gets the value of the global variable. | |
static void | set (Type new_value) |
Sets the value of the free variable. | |
static std::string | full_name (void) |
Returns the full name of the reflected entity. | |
static std::string | local_name (void) |
Returns the local name of the reflected entity. | |
static std::string | base_name (void) |
Returns the base name of the reflected entity. | |
Friends | |
meta_free_variable_tag | categorize_meta_object (MetaFreeVariable) |
struct | storage_class< MetaVariable > |
Meta-function returning the storage class of the variable. | |
struct | type_of< MetaVariable > |
Meta-function returning the type of the variable. | |
meta_variable_tag | categorize_meta_object (MetaVariable) |
meta_named_scoped_object_tag | categorize_meta_object (MetaNamedScopedObject) |
meta_named_object_tag | categorize_meta_object (MetaNamedObject) |
meta_object_tag | categorize_meta_object (MetaObject) |
meta_scoped_object_tag | categorize_meta_object (MetaScopedObject) |
struct | is_a< MetaObject, ConceptTag > |
Meta-function for checking if the MetaObject conforms to a concept. | |
struct | scope< MetaScopedObject > |
Meta-function returning the scope of the scoped object. |
MetaFreeVariable is a type reflecting free variable.
typedef StorageClassTag mirror::MetaVariable::storage_class [inherited] |
The storage class tag.
Tag reflecting the storage class (auto|static|mutable|...) for the reflected variable.
static std::string mirror::MetaNamedObject::base_name | ( | void | ) | [static, inherited] |
Returns the base name of the reflected entity.
This function returns the base name of the reflected construct (type, class, namespace, member variable, etc.) without the nested name specifier.
static std::string mirror::MetaNamedScopedObject::full_name | ( | void | ) | [static, inherited] |
Returns the full name of the reflected entity.
This function returns the full name of the reflected construct (type, class, namespace, member variable, etc.) including the nested name specifier.
static Type mirror::MetaFreeVariable::get | ( | void | ) | [static] |
Gets the value of the global variable.
This function allows to get the value of the global variable reflected by this MetaFreeVariable
static std::string mirror::MetaNamedScopedObject::local_name | ( | void | ) | [static, inherited] |
Returns the local name of the reflected entity.
This function returns the local name of the reflected construct (type, class, namespace, member variable, etc.) including the partial or full nested name specifier, based on whether the parent scope or one of its enclosing scopes of the construct reflected by this MetaNamedScopedObject is used with the MIRROR_USING_NAMESPACE macro.
static void mirror::MetaFreeVariable::set | ( | Type | new_value | ) | [static] |
Sets the value of the free variable.
This function allows to set the value of the free variable reflected by this MetaFreeVariable to the new_value.
Type | the type of the value to be set. This type must be implicitly convertible to the type of the member variable. |
new_value | the new value to be set to the member variable of the passed instance. |
meta_free_variable_tag categorize_meta_object | ( | MetaFreeVariable | ) | [friend] |
meta_variable_tag categorize_meta_object | ( | MetaVariable | ) | [friend, inherited] |
meta_scoped_object_tag categorize_meta_object | ( | MetaScopedObject | ) | [friend, inherited] |
meta_named_scoped_object_tag categorize_meta_object | ( | MetaNamedScopedObject | ) | [friend, inherited] |
meta_object_tag categorize_meta_object | ( | MetaObject | ) | [friend, inherited] |
This function can be used to determine if a type is a MetaObject
meta_named_object_tag categorize_meta_object | ( | MetaNamedObject | ) | [friend, inherited] |
friend struct is_a< MetaObject, ConceptTag > [friend, inherited] |
Meta-function for checking if the MetaObject conforms to a concept.
This meta-function returns std::true_type if a MetaObject conforms to the concept identified by the ConceptTag
. Returns std::false_type otherwise.
friend struct scope< MetaScopedObject > [friend, inherited] |
friend struct storage_class< MetaVariable > [friend, inherited] |
Meta-function returning the storage class of the variable.
This meta-function "returns" the same StorageClassTag as the storage_class
member typedef, but is better suited for algorithms using lambda placeholder expressions.
friend struct type_of< MetaVariable > [friend, inherited] |