Mirror reflection library - Lagoon run-time layer 0.5.13
|
The interface for reflecting Lagoon's meta-objects. More...
#include <lagoon/interfaces.hpp>
Public Member Functions | |
std::string | base_name (void) const |
Returns the base name of the reflected meta_object. | |
std::string | construct_name (void) const |
Returns the name of the reflected language construct. | |
virtual range< meta_meta_object > | generalizations (void) const =0 |
Returns the range of generalizations for the reflected MetaObject. | |
Reflected meta-object categorization functions | |
These functions allow to determine the category of the meta_object reflected by this meta_meta_object. | |
meta_object_category | category (void) const |
Returns the category of the reflected meta_object. | |
bool | is_a (meta_object_category cat) const |
Returns true if the reflected meta-object is of the cat category. | |
Protected Member Functions | |
template<typename MetaMetaObject > | |
meta_meta_object (MetaMetaObject) | |
Static Protected Member Functions | |
template<typename MetaObjectTag > | |
static meta_object_category | get_category (MetaObjectTag tag) |
Friends | |
template<typename MetaMetaObject , typename Interface > | |
shared< Interface > | aux::get_meta_object (mirror::meta_meta_object_tag) |
The interface for reflecting Lagoon's meta-objects.
This interface can be used to get meta-data about a Lagoon's meta-object.
std::string lagoon::meta_meta_object::base_name | ( | void | ) | const [inline] |
Returns the base name of the reflected meta_object.
This member function returns the base name i.e. the name without the nested name specifier of the construct reflected by this meta-object.
std::string lagoon::meta_meta_object::construct_name | ( | void | ) | const [inline] |
Returns the name of the reflected language construct.
This function returns a human readable name of the language construct (type, class, namespace, member variable, etc.) reflected by this meta-object.
virtual range<meta_meta_object> lagoon::meta_meta_object::generalizations | ( | void | ) | const [pure virtual] |
Returns the range of generalizations for the reflected MetaObject.
This member function returns a range of meta_meta_objects that reflect the generalizations of the meta-object reflected by this meta_meta_object.
This member function is available only if the LAGOON_MMO_WITH_GENERALIZATIONS preprocessor symbol is set to a non-zero integer.