![]() |
deal.II version GIT relicensing-2863-gb18dd3416c 2025-03-19 12:40:00+00:00
|
#include <deal.II/base/index_set.h>
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = size_type |
using | difference_type = std::ptrdiff_t |
using | pointer = size_type * |
using | reference = size_type & |
Public Member Functions | |
ElementIterator (const IndexSet *idxset, const size_type range_idx, const size_type index) | |
ElementIterator (const IndexSet *idxset) | |
size_type | operator* () const |
bool | is_valid () const |
ElementIterator & | operator++ () |
ElementIterator | operator++ (int) |
bool | operator== (const ElementIterator &) const |
bool | operator!= (const ElementIterator &) const |
bool | operator< (const ElementIterator &) const |
std::ptrdiff_t | operator- (const ElementIterator &p) const |
Private Member Functions | |
void | advance () |
Private Attributes | |
const IndexSet * | index_set |
size_type | range_idx |
size_type | idx |
Class that represents an iterator pointing to a single element in the IndexSet as returned by IndexSet::begin().
Definition at line 873 of file index_set.h.
using IndexSet::ElementIterator::iterator_category = std::forward_iterator_tag |
Mark the class as forward iterator and declare some alias which are standard for iterators and are used by algorithms to enquire about the specifics of the iterators they work on.
Definition at line 948 of file index_set.h.
Definition at line 949 of file index_set.h.
using IndexSet::ElementIterator::difference_type = std::ptrdiff_t |
Definition at line 950 of file index_set.h.
using IndexSet::ElementIterator::pointer = size_type * |
Definition at line 951 of file index_set.h.
Definition at line 952 of file index_set.h.
|
inline |
Construct an iterator pointing to the global index index
in the interval range_idx
Definition at line 1469 of file index_set.h.
|
inlineexplicit |
Construct an iterator pointing to the end of the IndexSet.
Definition at line 1489 of file index_set.h.
|
inline |
Dereferencing operator. The returned value is the index of the element inside the IndexSet.
Definition at line 1513 of file index_set.h.
|
inline |
Does this iterator point to an existing element?
Definition at line 1498 of file index_set.h.
|
inline |
Prefix increment.
Definition at line 1566 of file index_set.h.
|
inline |
Postfix increment.
Definition at line 1575 of file index_set.h.
|
inline |
Comparison.
Definition at line 1525 of file index_set.h.
|
inline |
Inverse of ==
.
Definition at line 1585 of file index_set.h.
|
inline |
Comparison operator.
Definition at line 1593 of file index_set.h.
|
inline |
Return the distance between the current iterator and the argument. In the expression it_left-it_right
the distance is given by how many times one has to apply operator++ to the right operand it_right
to get the left operand it_left
(for a positive return value), or to it_left
to get the it_right
(for a negative return value).
Definition at line 1607 of file index_set.h.
|
inlineprivate |
Advance iterator by one.
Definition at line 1537 of file index_set.h.
|
private |
The parent IndexSet.
Definition at line 964 of file index_set.h.
|
private |
Index into index_set.ranges.
Definition at line 968 of file index_set.h.
|
private |
The global index this iterator is pointing at.
Definition at line 972 of file index_set.h.