Mirror reflection library 0.5.13
|
MetaContainer provides meta-data about a container. More...
#include <mirror/doc/concepts_container.hpp>
Public Types | |
typedef MetaScope | scope |
MetaScope reflecting the class or namespace this container belongs to. | |
typedef MetaType | element_type |
MetaType reflecting the type of the elements stored in the container. | |
typedef MetaTraversal | default_traversal |
The default element traversal method for the reflected container. | |
Static Public Member Functions | |
static bool | empty (Container &container) |
Checks if the container is empty. | |
static size_t | size_hint (Container &container) |
Returns the number of elements in the container if possible. | |
Friends | |
struct | default_traversal< MetaContainer > |
The default element traversal method for the reflected container. | |
struct | traversals< MetaContainer > |
The element traversal methods available for the reflected container. | |
struct | locators< MetaContainer > |
The element location methods available for the reflected container. | |
struct | inserters< MetaContainer > |
The element insertion methods available for the reflected container. | |
struct | erasers< MetaContainer > |
The element removal methods available for the reflected container. | |
meta_container_tag | categorize_meta_object (MetaContainer) |
struct | scope< MetaScopedObject > |
Meta-function returning the scope of the scoped object. | |
meta_scoped_object_tag | categorize_meta_object (MetaScopedObject) |
meta_object_tag | categorize_meta_object (MetaObject) |
struct | is_a< MetaObject, ConceptTag > |
Meta-function for checking if the MetaObject conforms to a concept. |
MetaContainer provides meta-data about a container.
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 mirror::MetaScopedObject.
static size_t mirror::MetaContainer::size_hint | ( | Container & | container | ) | [static] |
Returns the number of elements in the container if possible.
This member function returns the number of elements in the container if this information is available for this Container type. If the info is not available this function returns zero.
meta_container_tag categorize_meta_object | ( | MetaContainer | ) | [friend] |
meta_scoped_object_tag categorize_meta_object | ( | MetaScopedObject | ) | [friend, inherited] |
meta_object_tag categorize_meta_object | ( | MetaObject | ) | [friend, inherited] |
This function can be used to determine if a type is a MetaObject
friend struct default_traversal< MetaContainer > [friend] |
The default element traversal method for the reflected container.
Meta-function returning a MetaTraversal which is providing meta-data about the default element traversal method for the container reflected by this MetaContainer
friend struct erasers< MetaContainer > [friend] |
The element removal methods available for the reflected container.
Meta-function returning a range of MetaErasers which are providing meta-data about all element removal methods for the container reflected by this MetaContainer
friend struct inserters< MetaContainer > [friend] |
The element insertion methods available for the reflected container.
Meta-function returning a range of MetaInserters which are providing meta-data about all element insertion methods for the container reflected by this MetaContainer
friend struct is_a< MetaObject, ConceptTag > [friend, inherited] |
Meta-function for checking if the MetaObject conforms to a concept.
This meta-function returns std::true_type if a MetaObject conforms to the concept identified by the ConceptTag
. Returns std::false_type otherwise.
friend struct locators< MetaContainer > [friend] |
The element location methods available for the reflected container.
Meta-function returning a range of MetaLocators which are providing meta-data about all element location methods for the container reflected by this MetaContainer
friend struct scope< MetaScopedObject > [friend, inherited] |
friend struct traversals< MetaContainer > [friend] |
The element traversal methods available for the reflected container.
Meta-function returning a range of MetaTraversals which are providing meta-data about all element traversal methods for the container reflected by this MetaContainer