DUNE PDELab (unstable)
treepath.hh
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
53 "HybridTreePath indices must be convertible to std::size_t or std::integral_constant<std::size_t,v>");
59 "HybridTreePath indices must be convertible to std::size_t or std::integral_constant<std::size_t,v>");
61 "HybridTreePath indices must be convertible to std::size_t or std::integral_constant<std::size_t,v>");
230 [[nodiscard]] constexpr auto treePathEntry(const HybridTreePath<T...>& tp, index_constant<i> = {})
255 [[nodiscard]] constexpr std::size_t treePathIndex(const HybridTreePath<T...>& tp, index_constant<i> = {})
294 [[deprecated("This class will be removed after Dune 2.11. Use the size() member function instead.")]]
302 [[deprecated("This class will be removed after Dune 2.11. Use the free push_back() function instead.")]]
310 [[deprecated("This class will be removed after Dune 2.11. Use the free push_front() function instead.")]]
318 [[deprecated("This class will be removed after Dune 2.11. Use the back() member function instead.")]]
325 [[deprecated("This class will be removed after Dune 2.11. Use the back() member function instead.")]]
332 [[deprecated("This class will be removed after Dune 2.11. Use the front() member function instead.")]]
339 [[deprecated("This class will be removed after Dune 2.11. Use the free pop_back() function instead.")]]
350 [[deprecated("This class will be removed after Dune 2.11. Use the free pop_back() function instead.")]]
357 [[deprecated("This class will be removed after Dune 2.11. Use the free pop_front() function instead.")]]
365 [[deprecated("This class will be removed after Dune 2.11. Use the free join() function instead.")]]
A hybrid multi-index class that supports both compile time and run time indices.
Definition: hybridmultiindex.hh:81
Documentation related stuff.
Traits for type conversions and type information.
std::integral_constant< std::size_t, i > index_constant
An index constant with value i.
Definition: indices.hh:29
constexpr auto treePathEntry(const HybridTreePath< T... > &tp, index_constant< i >={})
Returns a copy of the i-th element of the HybridTreePath.
Definition: treepath.hh:230
constexpr std::size_t treePathSize(const HybridTreePath< T... > &)
Returns the size (number of components) of the given HybridTreePath.
Definition: treepath.hh:207
constexpr auto makeTreePath(const T... t)
helper function to construct a new HybridTreePath from the given indices.
Definition: treepath.hh:166
constexpr auto hybridTreePath(const T &... t)
Constructs a new HybridTreePath from the given indices.
Definition: treepath.hh:184
constexpr std::size_t treePathIndex(const HybridTreePath< T... > &tp, index_constant< i >={})
Returns the index value of the i-th element of the HybridTreePath.
Definition: treepath.hh:255
constexpr auto treePath(const T &... t)
Constructs a new HybridTreePath from the given indices.
Definition: treepath.hh:199
constexpr auto join(const HybridMultiIndex< Head... > &head, const Other &... tail)
Join two hybrid multi-indices into one.
Definition: hybridmultiindex.hh:355
constexpr std::integer_sequence< T, II..., T(IN)> push_back(std::integer_sequence< T, II... >, std::integral_constant< T, IN >={})
Append an index IN to the back of the sequence.
Definition: integersequence.hh:69
constexpr std::integer_sequence< T, T(I0), II... > push_front(std::integer_sequence< T, II... >, std::integral_constant< T, I0 >={})
Append an index I0 to the front of the sequence.
Definition: integersequence.hh:64
constexpr auto reverse(const HybridMultiIndex< T... > &tp)
Reverses the order of the elements in the multi-index.
Definition: hybridmultiindex.hh:361
constexpr auto pop_back(const HybridMultiIndex< T... > &tp)
Removes last index on a HybridMultiIndex.
Definition: hybridmultiindex.hh:387
constexpr auto pop_front(const HybridMultiIndex< T... > &tp)
Removes first index on a HybridMultiIndex.
Definition: hybridmultiindex.hh:374
constexpr auto accumulate_back(const HybridMultiIndex< T... > &tp, I i)
Hybrid utility that accumulates to the back of a multi-index.
Definition: hybridmultiindex.hh:328
constexpr std::integral_constant< T, I0 > front(std::integer_sequence< T, I0, II... >)
Return the first entry of the sequence.
Definition: integersequence.hh:39
constexpr auto accumulate_front(const HybridMultiIndex< T... > &tp, I i)
Hybrid utility that accumulates to the front of a multi-index.
Definition: hybridmultiindex.hh:348
constexpr auto back(std::integer_sequence< T, II... > seq)
Return the last entry of the sequence.
Definition: integersequence.hh:44
Definition: treepath.hh:98
Definition: treepath.hh:122
Definition: treepath.hh:104
Definition: treepath.hh:110
Definition: treepath.hh:116
Definition: treepath.hh:86
Definition: treepath.hh:92
Definition: treepath.hh:80
