|
dune-istl 2.12-git
|
Loading...
Searching...
No Matches
indexedarrayview.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
171 constexpr ConstIterator(const Iterator& it) noexcept(std::is_nothrow_copy_constructible_v<Iterator>)
176 constexpr ConstIterator& operator=(const Iterator& it) noexcept(std::is_nothrow_copy_assignable_v<Iterator>)
255 return (ofs == size() || index_set_[ofs] != i) ? end() : const_iterator{iterator{data_, index_set_, ofs}};
Traits for sets of indices.
STL namespace.
Definition experimental/bcrsmatrix.hh:21
SLList< T, A > & operator=(const SLList< T, A > &other)
bigunsignedint< k > operator*(const bigunsignedint< k > &x, std::uintmax_t y)
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
Non-owning indexed view over random-access data.
Definition indexedarrayview.hh:36
constexpr iterator end() noexcept(noexcept(iterator(data_, index_set_, size_type{})))
Iterator to one past the last element in the view.
Definition indexedarrayview.hh:214
constexpr const_iterator begin() const noexcept(noexcept(iterator(data_, index_set_, size_type{})))
Const iterator to the first element in the view.
Definition indexedarrayview.hh:236
ConstIterator const_iterator
Iterator type with const access to the underlying data.
Definition indexedarrayview.hh:204
Iterator iterator
Iterator type with mutable access to the underlying data.
Definition indexedarrayview.hh:202
reference operator[](index_type i)
Access element by an index from the index set.
Definition indexedarrayview.hh:61
constexpr index_range_type indexSet() const
The logical index range covered by the view, as determined by the index set.
Definition indexedarrayview.hh:268
const_reference operator[](index_type i) const
Const access element by an index from the index set.
Definition indexedarrayview.hh:76
constexpr const_iterator end() const noexcept(noexcept(iterator(data_, index_set_, size_type{})))
Const iterator to one past the last element in the view.
Definition indexedarrayview.hh:243
bool contains(index_type i) const
Definition indexedarrayview.hh:229
IndexedArrayView(T data, index_range_type index_set) noexcept(std::is_nothrow_copy_constructible_v< T > &&std::is_nothrow_copy_constructible_v< index_range_type >)
Construct a view from data iterator and index set.
Definition indexedarrayview.hh:279
constexpr iterator begin() noexcept(noexcept(iterator(data_, index_set_, size_type{})))
Iterator to the first element in the view.
Definition indexedarrayview.hh:207
R index_range_type
The type used for the index set.
Definition indexedarrayview.hh:39
constexpr size_type size() const noexcept(noexcept(std::ranges::size(index_set_)))
The number of elements in the view, i.e. the size of the index set.
Definition indexedarrayview.hh:261
typename OrderedIndexRangeTraits< index_range_type >::size_type size_type
The type used to count elements in the index set.
Definition indexedarrayview.hh:45
iterator find(size_type i)
Find element with index i in the index set.
Definition indexedarrayview.hh:223
typename OrderedIndexRangeTraits< index_range_type >::index_type index_type
The type used for the index access.
Definition indexedarrayview.hh:43
const_iterator find(size_type i) const
Find element with index i in the index set.
Definition indexedarrayview.hh:252
std::common_reference_t< const std::iter_value_t< T > &&, std::iter_reference_t< T > > const_reference
The type used for const references to the components.
Definition indexedarrayview.hh:53
static constexpr size_type offset(const R &index_set, const index_type &value)
Offset of value in the index set.
Definition indexrange.hh:80
std::ranges::range_value_t< index_range_type > index_type
The type of indices in the index set.
Definition indexrange.hh:59
std::ranges::range_size_t< index_range_type > size_type
The type used to count elements in the index set.
Definition indexrange.hh:61
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8