Mixin class providing methods for child access with run-time parameter.
More...
#include <dune/typetree/proxynode.hh>
template<typename ProxiedNode>
class Dune::TypeTree::DynamicChildAccessors< ProxiedNode >
Mixin class providing methods for child access with run-time parameter.
This class also provides the compile-time parameter based methods, as multiple inheritance from both DynamicChildAccessors and StaticChildAccessors creates ambigous method lookups.
◆ child() [1/4]
template<typename ProxiedNode >
template<std::size_t k>
Returns the i-th child.
- Returns
- a reference to the i-th child.
◆ child() [2/4]
template<typename ProxiedNode >
template<std::size_t k>
Returns the i-th child (const version).
- Returns
- a const reference to the i-th child.
◆ child() [3/4]
template<typename ProxiedNode >
template<bool enabled = !proxiedNodeIsConst>
Returns the i-th child.
- Returns
- a reference to the i-th child.
◆ child() [4/4]
template<typename ProxiedNode >
Returns the i-th child (const version).
- Returns
- a const reference to the i-th child.
◆ childStorage() [1/4]
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/4]
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.
◆ childStorage() [3/4]
template<typename ProxiedNode >
template<bool enabled = !proxiedNodeIsConst>
Returns the storage of the i-th child.
- Returns
- a copy of the object storing the i-th child.
◆ childStorage() [4/4]
template<typename ProxiedNode >
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/4]
template<typename ProxiedNode >
template<bool enabled = !proxiedNodeIsConst>
Sets the stored value representing the i-th child to the passed-in value.
◆ setChild() [2/4]
template<typename ProxiedNode >
template<bool enabled = !proxiedNodeIsConst>
Sets the i-th child to the passed-in value.
◆ setChild() [3/4]
template<typename ProxiedNode >
template<std::size_t k>
Sets the storage of the i-th child to the passed-in value.
◆ setChild() [4/4]
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: