Read-only view of a single index set inside a CompressedSparseIndexRanges.
More...
#include <dune/istl/experimental/sparseindexranges.hh>
template<class A = std::allocator<void>>
class Dune::Experimental::CompressedSparseIndexRanges< A >::IndexRangeView
Read-only view of a single index set inside a CompressedSparseIndexRanges.
Provides a std::ranges::view over the sorted indices of one index set. Obtained via CompressedSparseIndexRanges::operator[] or by dereferencing a CompressedSparseIndexRanges::Iterator.
IndexRangeView is a lightweight proxy (pointer + index offset) that is cheap to copy. It becomes invalid if the underlying CompressedSparseIndexRanges is destroyed or moved.
◆ index_type
template<class A = std::allocator<void>>
◆ size_type
template<class A = std::allocator<void>>
◆ IndexRangeView() [1/3]
template<class A = std::allocator<void>>
◆ IndexRangeView() [2/3]
template<class A = std::allocator<void>>
◆ IndexRangeView() [3/3]
template<class A = std::allocator<void>>
◆ back()
template<class A = std::allocator<void>>
Returns the last index in this index set. Precondition: the set is not empty.
◆ begin()
Returns an iterator to the first index in this index set.
◆ contains()
Returns true if index j is contained in this index set. Complexity: O(size()) for small sets, O(log(size())) for large sets.
◆ empty()
template<class A = std::allocator<void>>
Returns true if this index set is empty (i.e., contains no indices).
◆ end()
Returns an iterator past the last index in this index set.
◆ find()
◆ for_each()
template<class A = std::allocator<void>>
Calls f(j) for every index j in this index set, in ascending order.
◆ front()
template<class A = std::allocator<void>>
Returns the first index in this index set. Precondition: the set is not empty.
◆ lower_bound()
Returns an iterator to the first index >= i in this index set, or end() if none exists.
◆ operator=() [1/2]
template<class A = std::allocator<void>>
◆ operator=() [2/2]
template<class A = std::allocator<void>>
◆ operator[]()
template<class A = std::allocator<void>>
Returns the index at local position i in this index set. Precondition: i < size().
◆ range()
Returns an integer range [0, n) usable as a local index range over this set.
◆ size()
Returns the number of indices in this index set.
◆ upper_bound()
◆ CompressedSparseIndexRanges< A >
template<class A = std::allocator<void>>
The documentation for this class was generated from the following file: