|
dune-pdelab 2.10-git
|
Loading...
Searching...
No Matches
multiindex.hh
Go to the documentation of this file.
138 for (typename ReservedVector<T,n>::const_iterator it = mi._mi.begin(); it != mi._mi.begin() + mi.size(); ++it)
345 MultiIndex(const TypeTree::HybridTreePath<U...>& tp) -> MultiIndex<std::common_type_t<U...>,sizeof...(U)>;
350DUNE_DEFINE_HASH(DUNE_HASH_TEMPLATE_ARGS(typename T, std::size_t n),DUNE_HASH_TYPE(Dune::PDELab::MultiIndex<T,n>))
#define DUNE_DEFINE_HASH(template_args, type)
#define DUNE_HASH_TYPE(...)
#define DUNE_HASH_TEMPLATE_ARGS(...)
constexpr void forEach(Range &&range, F &&f)
constexpr EnableIfInterOperable< T1, T2, bool >::type operator<(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
std::size_t hash_range(It first, It last)
constexpr std::integer_sequence< T, II... > tail(std::integer_sequence< T, I0, II... >)
constexpr std::integral_constant< T, I0 > head(std::integer_sequence< T, I0, II... >)
std::size_t hash_value(const DOFIndex< T, n1, n2 > &di)
Definition dofindex.hh:334
For backward compatibility – Do not use this!
static constexpr std::size_t size()
static constexpr index_sequence enumerate()
storage_type::pointer pointer
static constexpr size_type max_size() noexcept
constexpr iterator end() noexcept
constexpr size_type size() const noexcept
constexpr bool empty() const noexcept
constexpr iterator begin() noexcept
storage_type::difference_type difference_type
constexpr void clear() noexcept
storage_type::const_iterator const_iterator
storage_type::size_type size_type
storage_type::const_reference const_reference
storage_type::value_type value_type
constexpr void resize(size_type s) noexcept
storage_type::reference reference
friend MultiIndex pop_front(MultiIndex mi)
Returns a copy of a multi-index without the front element.
Definition multiindex.hh:252
friend std::ostream & operator<<(std::ostream &s, const MultiIndex &mi)
Writes a pretty representation of the MultiIndex to the given std::ostream.
Definition multiindex.hh:287
friend reference back(MultiIndex &mi)
Returns the back element of the MultiIndex.
Definition multiindex.hh:202
friend MultiIndex reverse(MultiIndex rv)
Reverses the order of elements in the MultiIndex.
Definition multiindex.hh:280
friend MultiIndex accumulate_back(MultiIndex mi, const value_type &t)
Accumulates a value to the back element of the MultiIndex.
Definition multiindex.hh:259
friend reference front(MultiIndex &mi)
Returns the front element of the MultiIndex.
Definition multiindex.hh:192
MultiIndex(const ReservedVector< T, n > &rv)
Copy constructor from ReservedVector.
Definition multiindex.hh:160
friend const_reference front(const MultiIndex &mi)
Returns the front element of the MultiIndex.
Definition multiindex.hh:197
friend MultiIndex push_front(MultiIndex mi, const value_type &t)
Returns a copy of a multi-index with prepended element.
Definition multiindex.hh:228
friend const_reference back(const MultiIndex &mi)
Returns the back element of the MultiIndex.
Definition multiindex.hh:207
friend MultiIndex accumulate_front(MultiIndex mi, const value_type &t)
Accumulates a value to the front element of the MultiIndex.
Definition multiindex.hh:265
static const std::size_t max_depth
The maximum possible depth of the MultiIndex.
Definition multiindex.hh:38
bool operator==(const MultiIndex &r) const
Tests whether two MultiIndices are equal.
Definition multiindex.hh:313
MultiIndex(const MultiIndex< T, _n > &rv)
Copy constructor from a multi-index of different size.
Definition multiindex.hh:166
void pop_front()
Erases the last element of the vector, O(1) time.
Definition multiindex.hh:242
friend MultiIndex join(MultiIndex head, const MultiIndex &tail)
Concatenates two MultiIndices into a new MultiIndex, up to the maximum size n.
Definition multiindex.hh:271
friend MultiIndex push_back(MultiIndex mi, const value_type &t)
Returns a copy of a multi-index with appended element.
Definition multiindex.hh:212
void push_front(const value_type &t)
Appends an element to the beginning of a vector, up to the maximum size n, O(n) time.
Definition multiindex.hh:219
friend MultiIndex pop_back(MultiIndex mi)
Returns a copy of a multi-index without the back element.
Definition multiindex.hh:235
bool operator!=(const MultiIndex &r) const
Tests whether two MultiIndices are not equal.
Definition multiindex.hh:321
MultiIndex(const TypeTree::HybridTreePath< U... > &tp)
Copy constructor from a hybrid multi-index.
Definition multiindex.hh:176
void set(typename ReservedVector< T, n >::value_type index)
Definition multiindex.hh:185
Definition multiindex.hh:46
base_type::const_reference reference
Definition multiindex.hh:57
friend std::ostream & operator<<(std::ostream &s, const View &mi)
Definition multiindex.hh:132
base_type::value_type value_type
Definition multiindex.hh:55
base_type::const_iterator iterator
Definition multiindex.hh:61
const_reference operator[](size_type i) const
Definition multiindex.hh:104
static const std::size_t max_depth
The maximum possible depth of the MultiIndex.
Definition multiindex.hh:53
base_type::const_iterator const_iterator
Definition multiindex.hh:62
base_type::const_reference const_reference
Definition multiindex.hh:58
reference operator[](size_type i)
Definition multiindex.hh:98
base_type::difference_type difference_type
Definition multiindex.hh:60
T begin(T... args)
T copy_backward(T... args)
T copy(T... args)
T equal(T... args)
T lexicographical_compare(T... args)
T min(T... args)
T reverse(T... args)
T setw(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8