Mixin class providing methods for child access with compile-time parameter.
More...
#include <dune/typetree/proxynode.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_enabled< 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_enabled< 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_enabled< k >::value, void * >::type=0) |
| | Sets the i-th child to the passed-in value. More...
|
| |
| template<std::size_t k> |
| void | setChild (typename Child< k >::storage_type child, typename std::enable_if< lazy_enabled< k >::value, void * >::type=0) |
| | Sets the storage of the i-th child to the passed-in value. More...
|
| |
| const ProxiedNode::NodeStorage & | nodeStorage () const |
| |
template<typename ProxiedNode>
class Dune::TypeTree::StaticChildAccessors< ProxiedNode >
Mixin class providing methods for child access with compile-time parameter.
◆ child() [1/2]
template<typename ProxiedNode >
template<std::size_t k>
Returns the i-th child.
- Returns
- a reference to the i-th child.
◆ child() [2/2]
template<typename ProxiedNode >
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 ProxiedNode >
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 ProxiedNode >
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.
◆ nodeStorage()
template<typename ProxiedNode >
◆ setChild() [1/2]
template<typename ProxiedNode >
template<std::size_t k>
Sets the storage of the i-th child to the passed-in value.
◆ setChild() [2/2]
template<typename ProxiedNode >
template<std::size_t k>
Sets the i-th child to the passed-in value.
The documentation for this class was generated from the following file: