![]() |
deal.II version GIT relicensing-6917-gb466a1809f 2026-10-16 06:30:01+00:00
|
#include <deal.II/base/index_set.h>
Class that represents an iterator pointing to a contiguous interval \([a,b[\) as returned by IndexSet::begin_interval().
Definition at line 742 of file index_set.h.
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = IntervalAccessor |
| using | difference_type = std::ptrdiff_t |
| using | pointer = IntervalAccessor * |
| using | reference = IntervalAccessor & |
Public Member Functions | |
| IntervalIterator (const IndexSet *idxset, const size_type range_idx) | |
| IntervalIterator (const IndexSet *idxset) | |
| IntervalIterator () | |
| IntervalIterator (const IntervalIterator &other)=default | |
| IntervalIterator & | operator= (const IntervalIterator &other)=default |
| IntervalIterator & | operator++ () |
| IntervalIterator | operator++ (int) |
| const IntervalAccessor & | operator* () const |
| const IntervalAccessor * | operator-> () const |
| bool | operator== (const IntervalIterator &) const |
| bool | operator!= (const IntervalIterator &) const |
| bool | operator< (const IntervalIterator &) const |
| int | operator- (const IntervalIterator &p) const |
Private Attributes | |
| IntervalAccessor | accessor |
| using IndexSet::IntervalIterator::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 828 of file index_set.h.
Definition at line 829 of file index_set.h.
| using IndexSet::IntervalIterator::difference_type = std::ptrdiff_t |
Definition at line 830 of file index_set.h.
Definition at line 831 of file index_set.h.
Definition at line 832 of file index_set.h.
|
inline |
Construct a valid iterator pointing to the interval with index range_idx.
Definition at line 1333 of file index_set.h.
|
inlineexplicit |
Construct an invalid iterator (used as end()).
Definition at line 1347 of file index_set.h.
|
inline |
Construct an empty iterator.
Definition at line 1341 of file index_set.h.
|
default |
Copy constructor from other iterator.
|
default |
Assignment of another iterator.
|
inline |
Prefix increment.
Definition at line 1354 of file index_set.h.
|
inline |
Postfix increment.
Definition at line 1363 of file index_set.h.
|
inline |
Dereferencing operator, returns an IntervalAccessor.
Definition at line 1373 of file index_set.h.
|
inline |
Dereferencing operator, returns a pointer to an IntervalAccessor.
Definition at line 1381 of file index_set.h.
|
inline |
Comparison.
Definition at line 1389 of file index_set.h.
|
inline |
Inverse of ==.
Definition at line 1398 of file index_set.h.
|
inline |
Comparison operator.
Definition at line 1406 of file index_set.h.
|
inline |
Return the distance between the current iterator and the argument. The distance is given by how many times one has to apply operator++ to the current iterator to get the argument (for a positive return value), or operator-- (for a negative return value).
Definition at line 1416 of file index_set.h.
|
private |
Accessor that contains what IndexSet and interval we are pointing at.
Definition at line 838 of file index_set.h.