Mirror reflection library - Puddle compile-time layer 0.5.13
|
MetaFunction is a meta-object reflecting a function. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
MetaType | result_type (void) const |
Returns MetaType reflecting the return type of the function. | |
Specifier | storage_class (void) const |
Returns specifier indicating the storage class or linkage of function. | |
Specifier | linkage (void) const |
Returns specifier indicating the storage class or linkage of function. | |
Range< MetaParameter > | parameters (void) const |
Returns a range of MetaVariable(s) reflecting the parameters. | |
mirror::meta_function_tag | category (void) const |
Range< MetaNamedScopedObject > | members (void) const |
Returns the members of the reflected scope. | |
std::string | full_name (void) const |
Returns the full name of the reflected entity. | |
std::string | local_name (void) const |
Returns the local name of the reflected entity. | |
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. | |
template<typename Category > | |
Boolean | is_a (Category) const |
Returns true if the meta-object is of the specified Category. | |
MetaScope | scope (void) const |
Returns a meta-object reflecting the scope of the scoped object. | |
Friends | |
Boolean | operator== (MetaObject, MetaObject) |
Equality comparison. | |
Boolean | operator!= (MetaObject, MetaObject) |
Inequality comparison. |
MetaFunction is a meta-object reflecting a function.
std::string puddle::MetaNamedObject::base_name | ( | void | ) | const [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.
mirror::meta_function_tag puddle::MetaFunction::category | ( | void | ) | const |
Reimplemented from puddle::MetaScope.
Reimplemented in puddle::MetaMemberFunction, puddle::MetaConstructor, and puddle::MetaConversionOperator.
std::string puddle::MetaNamedScopedObject::full_name | ( | void | ) | const [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.
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 |
std::string puddle::MetaNamedScopedObject::local_name | ( | void | ) | const [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 PUDDLE_USING_NAMESPACE macro.
MetaScope puddle::MetaScopedObject::scope | ( | void | ) | const [inherited] |
Returns a meta-object reflecting the scope of the scoped object.
The resulting type conforms to the MetaScope concept and provides meta-data about the scope which encloses the construct reflected by this MetaScopedObject.
Reimplemented in puddle::MetaClassMember, puddle::MetaEnumValue, puddle::MetaFreeVariable, and puddle::MetaContainer.
Specifier puddle::MetaFunction::storage_class | ( | void | ) | const |
Returns specifier indicating the storage class or linkage of function.
The linkage function is an alternate name for this one