dune-typetree  2.7.1
Public Types | List of all members
Dune::TypeTree::ProxyNodeBase< Node, CompositeNodeTag > Struct Template Reference

ProxyNode base class for CompositeNode. More...

#include <dune/typetree/proxynode.hh>

Inheritance diagram for Dune::TypeTree::ProxyNodeBase< Node, CompositeNodeTag >:
Inheritance graph

Public Types

typedef Node::ChildTypes ChildTypes
 
typedef Node::NodeStorage NodeStorage
 

Public Member Functions

Child Access
std::enable_if< lazy_enabled< k >::value, typename Child< 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, typename Child< k >::Storage >::type childStorage ()
 Returns the storage of the i-th child. 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. More...
 
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 Node ::NodeStoragenodeStorage () const
 
Child Access
std::enable_if< lazy_enabled< k >::value, typename Child< 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, typename Child< 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. More...
 
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 Node ::NodeStoragenodeStorage () const
 
Child Access
std::enable_if< lazy_enabled< k >::value, typename Child< 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, typename Child< 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. More...
 
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 Node ::NodeStoragenodeStorage () const
 

Detailed Description

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

ProxyNode base class for CompositeNode.

Member Typedef Documentation

◆ ChildTypes

template<typename Node >
typedef Node::ChildTypes Dune::TypeTree::ProxyNodeBase< Node, CompositeNodeTag >::ChildTypes

◆ NodeStorage

template<typename Node >
typedef Node::NodeStorage Dune::TypeTree::ProxyNodeBase< Node, CompositeNodeTag >::NodeStorage

Member Function Documentation

◆ child() [1/2]

std::enable_if<lazy_enabled<k>::value,typename Child<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/2]

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.

◆ childStorage() [1/2]

std::enable_if<lazy_enabled<k>::value,typename Child<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/2]

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

◆ nodeStorage()

const Node ::NodeStorage& Dune::TypeTree::StaticChildAccessors< Node >::nodeStorage
inlineinherited

◆ setChild() [1/2]

void Dune::TypeTree::StaticChildAccessors< Node >::setChild ( typename Child< k >::storage_type  child,
typename std::enable_if< lazy_enabled< k >::value, void * >::type  = 0 
)
inlineinherited

Sets the storage of the i-th child to the passed-in value.

◆ setChild() [2/2]

void Dune::TypeTree::StaticChildAccessors< Node >::setChild ( typename Child< k >::type &  child,
typename std::enable_if< lazy_enabled< k >::value, void * >::type  = 0 
)
inlineinherited

Sets the i-th child to the passed-in value.


The documentation for this struct was generated from the following file: