Mirror reflection library - Puddle compile-time layer 0.5.13
|
MetaContainer reflects a container of elements. More...
#include <puddle/doc/concepts.hpp>
Public Member Functions | |
MetaScope | scope (void) const |
MetaScope reflecting the class or namespace this container belongs to. | |
MetaType | element_type (void) const |
Returns a MetaType reflecting the element type of the container. | |
MetaTraversal | default_traversal (void) const |
Returns a MetaTraversal reflecting the default traversal method. | |
Range< MetaTraversal > | traversals (void) const |
Returns a Range of MetaTraversals reflecting all traversal methods. | |
Range< MetaInserter > | inserters (void) const |
Returns a Range of MetaInserters reflecting insertion methods. | |
Range< MetaEraser > | erasers (void) const |
Returns a Range of MetaErasers reflecting element removal methods. | |
mirror::meta_container_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. |
MetaContainer reflects a container of elements.
mirror::meta_container_tag puddle::MetaContainer::category | ( | void | ) | const |
Reimplemented from puddle::MetaScopedObject.
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 |
MetaScope puddle::MetaContainer::scope | ( | void | ) | const |
MetaScope reflecting the class or namespace this container belongs to.
The resulting MetaScope is a MetaClass for most containers, but it is for example the MetaGlobalScope for array containers.
Reimplemented from puddle::MetaScopedObject.