dune-typetree
2.3.1
|
Mixin class providing methods for child access with run-time parameter. More...
#include <dune/typetree/proxynode.hh>
Public Member Functions | |
Child Access (Dynamic methods) | |
template<bool enabled = !proxiedNodeIsConst> | |
enable_if< enabled, typename ProxiedNode::ChildType & > ::type | child (std::size_t i) |
Returns the i-th child. More... | |
const ProxiedNode::ChildType & | child (std::size_t i) const |
Returns the i-th child (const version). More... | |
template<bool enabled = !proxiedNodeIsConst> | |
enable_if< enabled, typename ProxiedNode::ChildStorageType > ::type | childStorage (std::size_t i) |
Returns the storage of the i-th child. More... | |
ProxiedNode::ChildConstStorageType | childStorage (std::size_t i) const |
Returns the storage of the i-th child (const version). More... | |
template<bool enabled = !proxiedNodeIsConst> | |
void | setChild (std::size_t i, typename ProxiedNode::ChildType &t, typename enable_if< enabled, void * >::type=0) |
Sets the i-th child to the passed-in value. More... | |
template<bool enabled = !proxiedNodeIsConst> | |
void | setChild (std::size_t i, typename ProxiedNode::ChildStorageType st, typename enable_if< enabled, void * >::type=0) |
Sets the stored value representing the i-th child to the passed-in value. More... | |
Child Access | |
template<std::size_t k> | |
enable_if< lazy_enabled< k > ::value, typename Child< k > ::Type & >::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> | |
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 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 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 |
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.
|
inlineinherited |
Returns the i-th child.
|
inlineinherited |
Returns the i-th child (const version).
|
inline |
Returns the i-th child.
|
inline |
Returns the i-th child (const version).
|
inlineinherited |
Returns the storage of the i-th child.
|
inlineinherited |
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 |
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.
|
inlineinherited |
|
inlineinherited |
Sets the i-th child to the passed-in value.
|
inlineinherited |
Sets the storage of the i-th child to the passed-in value.
|
inline |
Sets the i-th child to the passed-in value.
|
inline |
Sets the stored value representing the i-th child to the passed-in value.