Mirror reflection library - Puddle compile-time layer 0.5.13
|
MetaNamedObject is a type reflecting a construct (type, ...) having a name. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
std::string | base_name (void) const |
Returns the base name of the reflected entity. | |
CompileTimeString | static_name (void) const |
Returns a compile-time string containing the base_name. | |
mirror::meta_named_object_tag | category (void) const |
template<typename Category > | |
Boolean | is_a (Category) const |
Returns true if the meta-object is of the specified Category. | |
Friends | |
Boolean | operator== (MetaObject, MetaObject) |
Equality comparison. | |
Boolean | operator!= (MetaObject, MetaObject) |
Inequality comparison. |
MetaNamedObject is a type reflecting a construct (type, ...) having a name.
MetaNamedObject reflects base-level constructs which are identified by a name (identifier). Examples of named objects are types, namespaces, classes, functions, class members, etc. even if some of them might be anonymous. Meta objects reflecting these named objects provide functions for getting their names.
std::string puddle::MetaNamedObject::base_name | ( | void | ) | const |
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.
mirror::meta_named_object_tag puddle::MetaNamedObject::category | ( | void | ) | const |
Reimplemented from puddle::MetaObject.
Reimplemented in puddle::MetaMetaObject, puddle::MetaNamedScopedObject, puddle::MetaScope, puddle::MetaNamespace, puddle::MetaType, puddle::MetaTypedef, puddle::MetaTemplatedType, puddle::MetaTypeTemplate, puddle::MetaClass, puddle::MetaClassMember, puddle::MetaTemplatedClass, puddle::MetaEnum, puddle::MetaEnumValue, puddle::MetaVariable, puddle::MetaFreeVariable, puddle::MetaPlainFreeVariable, puddle::MetaMemberVariable, puddle::MetaPlainMemberVariable, puddle::MetaParameter, puddle::MetaFunction, puddle::MetaMemberFunction, puddle::MetaConstructor, puddle::MetaConversionOperator, puddle::MetaOverloadedFunctions, puddle::MetaTraversal, puddle::MetaLocator, puddle::MetaInserter, and puddle::MetaEraser.
Boolean puddle::MetaObject::is_a | ( | Category | ) | const [inherited] |
Returns true if the meta-object is of the specified Category.
Category | a meta-object category tag type |