MetaPlainMemberVariable is a meta-object reflecting POD class' member variable.
More...
#include <mirror/doc/concepts.hpp>
List of all members.
Detailed Description
Member Typedef Documentation
The access type tag.
Tag reflecting the access type (private | protected | public) for the reflected class member variable, function or constructor.
- See also:
- AccessTypeTag
The storage class tag.
Tag reflecting the storage class (auto|static|mutable|...) for the reflected variable.
- See also:
- StorageClassTag;
Member Function Documentation
static Type* mirror::MetaPlainMemberVariable::address |
( |
Class & |
instance | ) |
[static] |
Returns a pointer to the member when given a reference to Class.
This function allows to get the pointer of the member variable reflected by this MetaPlainMemberVariable of the provided instance.
- Template Parameters:
-
Class | the type of the parent class to which this member variable belongs to. |
- Parameters:
-
instance | an instance of the Class |
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.
- Examples:
- mirror/example/meta_prog_01.cpp, mirror/example/meta_prog_02.cpp, mirror/example/meta_prog_04.cpp, mirror/example/meta_prog_05.cpp, mirror/example/meta_prog_06.cpp, mirror/example/meta_prog_07.cpp, mirror/example/meta_prog_08.cpp, mirror/example/meta_prog_09.cpp, mirror/example/meta_prog_10.cpp, and mirror/example/meta_prog_11.cpp.
static Type mirror::MetaMemberVariable::get |
( |
const Class & |
instance | ) |
[static, inherited] |
Gets the value of the member when given an instance of the Class.
This function allows to get the value of the member variable reflected by this MetaMemberVariable of the provided instance.
- Template Parameters:
-
Class | the type of the parent class to which this member variable belongs to. |
- Parameters:
-
instance | an instance of the Class, the value of the member variable of which is to be obtained. |
- Returns:
- The result has the same type as the member variable.
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.
- See also:
- MIRROR_USING_NAMESPACE
static void mirror::MetaMemberVariable::set |
( |
Class & |
instance, |
|
|
Type |
new_value |
|
) |
| [static, inherited] |
Sets the value of the member when given an instance of the Class.
This function allows to set the value of the member variable reflected by this MetaMemberVariable of the provided instance to the provided new_value.
- Template Parameters:
-
Class | the type of the parent class to which this member variable belongs to. |
Type | the type of the value to be set. This type must be implicitly convertible to the type of the member variable. |
- Parameters:
-
instance | an instance of the Class, the value of the member variable of which is to be modified. |
new_value | the new value to be set to the member variable of the passed instance. |
Friends And Related Function Documentation
Meta-function returning the access type of the class member.
This meta-function "returns" the same AccessTypeTag as the access_type
member typedef, but is better suited for algorithms using lambda placeholder expressions.
- Returns:
- AccessTypeTag
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.
- Returns:
- BooleanConstantType
Meta-function returning the scope of the class member.
This meta-function "returns" the same MetaScope as the scope
member typedef, but is better suited for algorithms using lambda placeholder expressions.
- Returns:
- MetaClass
Meta-function returning the scope of the scoped object.
This meta-function "returns" the same MetaScope as the scope
member typedef, but is better suited for algorithms using lambda placeholder expressions.
- Returns:
- MetaScope
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.
- Returns:
- StorageClassTag
Meta-function returning the type of the variable.
This meta-function "returns" the same MetaType as the type
member typedef, but is better suited for algorithms using lambda placeholder expressions.
- Returns:
- MetaType
The documentation for this struct was generated from the following file:
, Zilina, Slovakia.