Mirror reflection library - Puddle compile-time layer 0.5.13
|
MetaInstance is a type reflecting an instance of a type. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
MetaVariable | variable (void) const |
Returns the variable of the instance. | |
Range< MetaInstance > | attributes (void) const |
Returns a range of meta instances reflecting the member instances. | |
Type | get (void) const |
Gets the value of the instance. | |
void | set (Type value) const |
Sets a new value to the instance. | |
meta_instance_tag | category (void) const |
Returns the category of the MetaObject. | |
template<typename Category > | |
Boolean | is_a (Category) const |
Returns true if the meta-object is of the specified Category. |
MetaInstance is a type reflecting an instance of a type.
Range<MetaInstance> puddle::MetaInstance::attributes | ( | void | ) | const |
Returns a range of meta instances reflecting the member instances.
If the type of the instance is elaborated, and it has member variables, then this function returns a non-empty range of MetaInstances, which reflect the individual instances of the member variables.
meta_instance_tag puddle::MetaInstance::category | ( | void | ) | const |
Returns the category of the MetaObject.
Boolean puddle::MetaInstance::is_a | ( | Category | ) | const |
MetaVariable puddle::MetaInstance::variable | ( | void | ) | const |
Returns the variable of the instance.
This function returns a MetaVariable reflecting the variable of the reflected instance