Base class for composite nodes representing a filtered view on an underlying composite node.
More...
#include <dune/typetree/filteredcompositenode.hh>
|
struct | Child |
| Access to the type and storage type of the i-th child. More...
|
|
|
|
template<std::size_t k> |
std::enable_if< lazy_enable< k >::value, typename Child< k >::Type & >::type | child (Dune::index_constant< k >={}) |
| Returns the i-th child. More...
|
|
template<std::size_t k> |
const Child< k >::Type & | child (Dune::index_constant< k >={}) const |
| Returns the i-th child (const version). More...
|
|
template<std::size_t k> |
std::enable_if< lazy_enable< k >::value, typename Child< k >::Storage >::type | 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, typename std::enable_if< lazy_enable< k >::value, void * >::type=0) |
| Sets the i-th child to the passed-in value.
|
|
template<std::size_t k> |
void | setChild (typename Child< k >::storage_type child, typename std::enable_if< lazy_enable< k >::value, void * >::type=0) |
| Sets the storage of the i-th child to the passed-in value.
|
|
|
| FilteredCompositeNode (std::shared_ptr< Node > node) |
| Initialize the CompositeNode with copies of the passed in Storage objects.
|
|
| FilteredCompositeNode (Node &node) |
| Initialize the CompositeNode with a copy of the passed-in storage type.
|
|
|
|
template<bool enabled = !nodeIsConst> |
std::enable_if< enabled, Node & >::type | unfiltered () |
| Returns the unfiltered node. More...
|
|
const Node & | unfiltered () const |
| Returns the unfiltered node (const version). More...
|
|
template<bool enabled = !nodeIsConst> |
std::enable_if< enabled, std::shared_ptr< Node > >::type | unfilteredStorage () |
| Returns the storage object of the unfiltered node. More...
|
|
std::shared_ptr< const Node > | unfilteredStorage () const |
| Returns the storage object of the unfiltered node (const version). More...
|
|
template<typename Node, typename Filter>
class Dune::TypeTree::FilteredCompositeNode< Node, Filter >
Base class for composite nodes representing a filtered view on an underlying composite node.
◆ child() [1/2]
template<typename Node , typename Filter >
template<std::size_t k>
◆ child() [2/2]
template<typename Node , typename Filter >
template<std::size_t k>
Returns the i-th child (const version).
- Returns
- a const reference to the i-th child.
◆ childStorage() [1/2]
template<typename Node , typename Filter >
template<std::size_t k>
Returns the storage of the i-th child.
- Returns
- a copy of the object storing the i-th child.
◆ childStorage() [2/2]
template<typename Node , typename Filter >
template<std::size_t k>
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.
- Returns
- a copy of the object storing the i-th child.
◆ unfiltered() [1/2]
template<typename Node , typename Filter >
template<bool enabled = !nodeIsConst>
Returns the unfiltered node.
- Returns
- A reference to the original, unfiltered node.
◆ unfiltered() [2/2]
template<typename Node , typename Filter >
Returns the unfiltered node (const version).
- Returns
- A const reference to the original, unfiltered node.
◆ unfilteredStorage() [1/2]
template<typename Node , typename Filter >
template<bool enabled = !nodeIsConst>
Returns the storage object of the unfiltered node.
- Returns
- A shared_ptr to the original, unfiltered node.
◆ unfilteredStorage() [2/2]
template<typename Node , typename Filter >
Returns the storage object of the unfiltered node (const version).
- Returns
- A shared_ptr to the original, unfiltered node.
The documentation for this class was generated from the following file: