dune-typetree 2.9
Public Member Functions | List of all members
Dune::TypeTree::Detail::TreeContainerVectorBackend< Container > Class Template Reference

#include <dune/typetree/treecontainer.hh>

Public Member Functions

 TreeContainerVectorBackend (Container &&container)
 Move the passed container into the internal storage. More...
 
template<class Tree , TypeTreeConcept< Tree > = true>
 TreeContainerVectorBackend (const Tree &tree)
 Default construct the container and perform a resize depending on the tree-node degrees. More...
 
template<class C = Container, std::enable_if_t< std::is_default_constructible_v< C >, bool > = true>
 TreeContainerVectorBackend ()
 Default constructor. The stored container might need to be resized before usage. More...
 
template<class... T>
decltype(auto) operator[] (const HybridTreePath< T... > &path) const
 
template<class... T>
decltype(auto) operator[] (const HybridTreePath< T... > &path)
 
template<class Tree , TypeTreeConcept< Tree > = true>
void resize (const Tree &tree)
 Resize the (nested) container depending on the degree of the tree nodes. More...
 
const Container & data () const
 
Container & data ()
 

Constructor & Destructor Documentation

◆ TreeContainerVectorBackend() [1/3]

template<class Container >
Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::TreeContainerVectorBackend ( Container &&  container)
inline

Move the passed container into the internal storage.

◆ TreeContainerVectorBackend() [2/3]

template<class Container >
template<class Tree , TypeTreeConcept< Tree > = true>
Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::TreeContainerVectorBackend ( const Tree &  tree)
inline

Default construct the container and perform a resize depending on the tree-node degrees.

◆ TreeContainerVectorBackend() [3/3]

template<class Container >
template<class C = Container, std::enable_if_t< std::is_default_constructible_v< C >, bool > = true>
Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::TreeContainerVectorBackend ( )
inline

Default constructor. The stored container might need to be resized before usage.

Member Function Documentation

◆ data() [1/2]

template<class Container >
Container & Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::data ( )
inline

◆ data() [2/2]

template<class Container >
const Container & Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::data ( ) const
inline

◆ operator[]() [1/2]

template<class Container >
template<class... T>
decltype(auto) Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::operator[] ( const HybridTreePath< T... > &  path)
inline

◆ operator[]() [2/2]

template<class Container >
template<class... T>
decltype(auto) Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::operator[] ( const HybridTreePath< T... > &  path) const
inline

◆ resize()

template<class Container >
template<class Tree , TypeTreeConcept< Tree > = true>
void Dune::TypeTree::Detail::TreeContainerVectorBackend< Container >::resize ( const Tree &  tree)
inline

Resize the (nested) container depending on the degree of the tree nodes.


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