|
dune-typetree
2.3.1
|
Base class for composite nodes based on variadic templates. More...
#include <dune/typetree/variadiccompositenode.hh>
Classes | |
| struct | Child |
| Access to the type and storage type of the i-th child. More... | |
Public Types | |
| typedef VariadicCompositeNodeTag | NodeTag |
| The type tag that describes a VariadicCompositeNode. More... | |
| typedef tuple< shared_ptr < Children >... > | NodeStorage |
| The type used for storing the children. More... | |
| typedef tuple< Children...> | ChildTypes |
| A tuple storing the types of all children. More... | |
Public Member Functions | |
Child Access | |
| template<std::size_t k> | |
| Child< k >::Type & | child () |
| Returns the i-th child. More... | |
| template<std::size_t k> | |
| const Child< k >::Type & | child () const |
| Returns the i-th child (const version). More... | |
| template<std::size_t k> | |
| Child< k >::Storage | childStorage () |
| Returns the storage of the i-th child. More... | |
| template<std::size_t k> | |
| Child< k >::ConstStorage | childStorage () const |
| Returns the storage of the i-th child (const version). More... | |
| template<std::size_t k> | |
| void | setChild (typename Child< k >::Type &child) |
| Sets the i-th child to the passed-in value. More... | |
| template<std::size_t k> | |
| void | setChild (typename Child< k >::Storage child) |
| Sets the storage of the i-th child to the passed-in value. More... | |
| const NodeStorage & | nodeStorage () const |
Static Public Attributes | |
| static const bool | isLeaf = false |
| Mark this class as non leaf in the dune-typetree. More... | |
| static const bool | isPower = false |
| Mark this class as a non power in the dune-typetree. More... | |
| static const bool | isComposite = true |
| Mark this class as a composite in the dune-typetree. More... | |
| static const std::size_t | CHILDREN = sizeof...(Children) |
| The number of children. More... | |
Protected Member Functions | |
Constructors | |
| VariadicCompositeNode () | |
| Default constructor. More... | |
| VariadicCompositeNode (Children &...children) | |
| VariadicCompositeNode (shared_ptr< Children >...children) | |
| Initialize the VariadicCompositeNode with copies of the passed in Storage objects. More... | |
| VariadicCompositeNode (const NodeStorage &children) | |
| Initialize the VariadicCompositeNode with a copy of the passed-in storage type. More... | |
Base class for composite nodes based on variadic templates.
| typedef tuple<Children...> Dune::TypeTree::VariadicCompositeNode< Children >::ChildTypes |
A tuple storing the types of all children.
| typedef tuple<shared_ptr<Children>... > Dune::TypeTree::VariadicCompositeNode< Children >::NodeStorage |
The type used for storing the children.
| typedef VariadicCompositeNodeTag Dune::TypeTree::VariadicCompositeNode< Children >::NodeTag |
The type tag that describes a VariadicCompositeNode.
|
inlineprotected |
Default constructor.
This constructor requires the storage type to be default constructible.
|
inlineprotected |
|
inlineprotected |
Initialize the VariadicCompositeNode with copies of the passed in Storage objects.
|
inlineprotected |
Initialize the VariadicCompositeNode with a copy of the passed-in storage type.
|
inline |
Returns the i-th child.
|
inline |
Returns the i-th child (const version).
|
inline |
Returns the storage of the i-th child.
|
inline |
Returns the storage of the i-th child (const version).
This method is only important if the child is stored as some kind of pointer, as this allows the pointee type to become const.
|
inline |
|
inline |
Sets the i-th child to the passed-in value.
|
inline |
Sets the storage of the i-th child to the passed-in value.
|
static |
The number of children.
|
static |
Mark this class as a composite in the dune-typetree.
|
static |
Mark this class as non leaf in the dune-typetree.
|
static |
Mark this class as a non power in the dune-typetree.
1.8.7