dune-typetree
2.5.0
|
A hybrid version of TreePath that supports both compile time and run time indices. More...
#include <dune/typetree/treepath.hh>
Public Types | |
using | index_sequence = std::index_sequence_for< T... > |
An index_sequence for the entries in this HybridTreePath . More... | |
Public Member Functions | |
constexpr | HybridTreePath () |
Default constructor. More... | |
constexpr | HybridTreePath (const HybridTreePath &tp)=default |
constexpr | HybridTreePath (HybridTreePath &&tp)=default |
constexpr | HybridTreePath (std::tuple< T... > t) |
Constructor from a std::tuple More... | |
template<typename... U, typename std::enable_if< = = sizeof...(T)> | |
constexpr | HybridTreePath (U... t) |
Constructor from arguments. More... | |
Static Public Member Functions | |
static constexpr index_sequence | enumerate () |
Returns an index_sequence for enumerating the components of this HybridTreePath. More... | |
A hybrid version of TreePath that supports both compile time and run time indices.
A HybridTreePath
supports storing a combination of run time and compile time indices. This makes it possible to store the tree path to a tree node inside the tree node itself, even if the path contains one or more PowerNode
s, where each child must have exactly the same type. At the same time, as much information as possible is kept accessible at compile time, allowing for more efficient algorithms.
using Dune::TypeTree::HybridTreePath< T >::index_sequence = std::index_sequence_for<T...> |
An index_sequence
for the entries in this HybridTreePath
.
|
inline |
Default constructor.
|
default |
|
default |
|
inlineexplicit |
Constructor from a std::tuple
|
inlineexplicit |
Constructor from arguments.
|
inlinestatic |
Returns an index_sequence for enumerating the components of this HybridTreePath.