DUNE PDELab (2.7)

Dune::TypeTree::ProxyNodeBase< Node, PowerNodeTag > Struct Template Reference

ProxyNode base class for PowerNode. More...

#include <dune/typetree/proxynode.hh>

Public Member Functions

Child Access (Dynamic methods)
std::enable_if< enabled, typenameProxiedNode::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...
 
std::enable_if< enabled, typenameProxiedNode::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...
 
void setChild (std::size_t i, typename ProxiedNode::ChildType &t, typename std::enable_if< enabled, void * >::type=0)
 Sets the i-th child to the passed-in value.
 
void setChild (std::size_t i, typename ProxiedNode::ChildStorageType st, typename std::enable_if< enabled, void * >::type=0)
 Sets the stored value representing the i-th child to the passed-in value.
 
Child Access
std::enable_if< lazy_enabled< k >::value, typenameChild< k >::Type & >::type child (Dune::index_constant< k >={})
 Returns the i-th child. More...
 
const Child< k >::Type & child (Dune::index_constant< k >={}) const
 Returns the i-th child (const version). More...
 
std::enable_if< lazy_enabled< k >::value, typenameChild< k >::Storage >::type childStorage ()
 Returns the storage of the i-th child. More...
 
Child< k >::ConstStorage childStorage () const
 Returns the storage of the i-th child (const version). More...
 
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.
 
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.
 
const ProxiedNode::NodeStorage & nodeStorage () const
 

Detailed Description

template<typename Node>
struct Dune::TypeTree::ProxyNodeBase< Node, PowerNodeTag >

ProxyNode base class for PowerNode.

Member Function Documentation

◆ child() [1/4]

std::enable_if< lazy_enabled< k >::value, typenameChild< k >::Type & >::type Dune::TypeTree::StaticChildAccessors< Node >::child ( Dune::index_constant< k >  = {})
inlineinherited

Returns the i-th child.

Returns
a reference to the i-th child.

◆ child() [2/4]

const Child< k >::Type & Dune::TypeTree::StaticChildAccessors< Node >::child ( Dune::index_constant< k >  = {}) const
inlineinherited

Returns the i-th child (const version).

Returns
a const reference to the i-th child.

◆ child() [3/4]

std::enable_if< enabled, typenameProxiedNode::ChildType & >::type Dune::TypeTree::DynamicChildAccessors< Node >::child ( std::size_t  i)
inlineinherited

Returns the i-th child.

Returns
a reference to the i-th child.

◆ child() [4/4]

const ProxiedNode::ChildType & Dune::TypeTree::DynamicChildAccessors< Node >::child ( std::size_t  i) const
inlineinherited

Returns the i-th child (const version).

Returns
a const reference to the i-th child.

◆ childStorage() [1/4]

std::enable_if< lazy_enabled< k >::value, typenameChild< k >::Storage >::type Dune::TypeTree::StaticChildAccessors< Node >::childStorage ( )
inlineinherited

Returns the storage of the i-th child.

Returns
a copy of the object storing the i-th child.

◆ childStorage() [2/4]

Child< k >::ConstStorage Dune::TypeTree::StaticChildAccessors< Node >::childStorage ( ) const
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.

Returns
a copy of the object storing the i-th child.

◆ childStorage() [3/4]

std::enable_if< enabled, typenameProxiedNode::ChildStorageType >::type Dune::TypeTree::DynamicChildAccessors< Node >::childStorage ( std::size_t  i)
inlineinherited

Returns the storage of the i-th child.

Returns
a copy of the object storing the i-th child.

◆ childStorage() [4/4]

ProxiedNode::ChildConstStorageType Dune::TypeTree::DynamicChildAccessors< Node >::childStorage ( std::size_t  i) const
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.

Returns
a copy of the object storing the i-th child.

The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)