Mirror reflection library - Puddle compile-time layer 0.5.13
|
MetaEnum is a type reflecting enumerations. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
Integer | size (void) const |
Returns the number of values in the reflected enumeration. | |
Range< MetaEnumValue > | enum_values (void) const |
Returns a range of meta-objects reflecting the enumerated values. | |
UnspecifiedEnumType | value (Integer index) const |
Gets the enumerated value with the specified compile-time index. | |
UnspecifiedEnumType | value (int index) const |
Gets the enumerated value with the specified index. | |
std::string | value_name (Integer index) const |
Gets the name of the enumerated value with the specified index. | |
std::string | value_name (int index) const |
Gets the name of the enumerated value with the specified index. | |
std::string | name_by_value (Enum x) const |
Returns the name of a value. | |
mirror::meta_enum_tag | category (void) const |
Range< MetaConstructor > | constructors (void) const |
Returns meta-data describing the type's constructors. | |
ContainerKind | container_kind (void) const |
Returns the container kind tag. | |
Range< MetaContainer > | containers (void) const |
Returns the meta-data describing element containers. | |
template<template< class > class UnaryTrait> | |
unspecified | apply (void) const |
Apply a unary trait to the original type and reflect the result. | |
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. | |
Range< MetaNamedScopedObject > | members (void) const |
Returns the members of the reflected scope. | |
Static Public Member Functions | |
static unspecified | original_type (void) |
Function returning the base-level type reflected by this MetaType. | |
Friends | |
Boolean | operator== (MetaObject, MetaObject) |
Equality comparison. | |
Boolean | operator!= (MetaObject, MetaObject) |
Inequality comparison. |
MetaEnum is a type reflecting enumerations.
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_enum_tag puddle::MetaEnum::category | ( | void | ) | const |
Reimplemented from puddle::MetaScope.
Range<MetaConstructor> puddle::MetaType::constructors | ( | void | ) | const [inherited] |
Returns meta-data describing the type's constructors.
This function returns a range of MetaConstructor (s) which are reflecting the constructors of the reflected type
ContainerKind puddle::MetaType::container_kind | ( | void | ) | const [inherited] |
Returns the container kind tag.
Tag specifying the container kind of the reflected type.
Range<MetaContainer> puddle::MetaType::containers | ( | void | ) | const [inherited] |
Returns the meta-data describing element containers.
Meta-function returning a range of MetaContainers which are reflecting the element containers of the reflected type
Range<MetaEnumValue> puddle::MetaEnum::enum_values | ( | void | ) | const |
Returns a range of meta-objects reflecting the enumerated values.
Meta-function returning a range of MetaEnumValue(s) which are reflecting the individual value of the reflected enum
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.
static unspecified puddle::MetaType::original_type | ( | void | ) | [static, inherited] |
Function returning the base-level type reflected by this MetaType.
Use decltype to get the type
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.