Reference documentation for deal.II version 9.3.3
|
#include <deal.II/lac/sparsity_pattern.h>
Public Types | |
using | size_type = types::global_dof_index |
using | container_pointer_type = SparsityPatternBase * |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = Accessor |
using | difference_type = std::ptrdiff_t |
using | reference = const value_type & |
using | pointer = const value_type * |
Public Member Functions | |
Iterator (const SparsityPatternBase *sp, const std::size_t linear_index) | |
Iterator (const Accessor &accessor) | |
Iterator & | operator++ () |
Iterator | operator++ (int) |
Iterator & | operator-- () |
Iterator | operator-- (int) |
Iterator | operator+ (const difference_type n) const |
Iterator | operator- (const difference_type n) const |
difference_type | operator- (const Iterator &p) const |
Iterator & | operator+= (const difference_type n) |
Iterator & | operator-= (const difference_type n) |
reference | operator* () const |
pointer | operator-> () const |
bool | operator<= (const Iterator &) const |
bool | operator>= (const Iterator &) const |
bool | operator< (const Iterator &) const |
bool | operator> (const Iterator &) const |
Protected Attributes | |
Accessor | accessor |
An iterator class for walking over the elements of a sparsity pattern.
The typical use for these iterators is to iterate over the elements of a sparsity pattern (or, since they also serve as the basis for iterating over the elements of an associated matrix, over the elements of a sparse matrix), or over the elements of individual rows. There is no guarantee that the elements of a row are actually traversed in an order in which column numbers monotonically increase. See the documentation of the SparsityPattern class for more information.
Definition at line 278 of file sparsity_pattern.h.
|
inherited |
Iterator category.
Definition at line 145 of file linear_index_iterator.h.
|
inherited |
An alias for the type you get when you dereference an iterator of the current kind.
Definition at line 151 of file linear_index_iterator.h.
|
inherited |
Difference type.
Definition at line 156 of file linear_index_iterator.h.
|
inherited |
Reference type.
Definition at line 161 of file linear_index_iterator.h.
|
inherited |
Pointer type.
Definition at line 166 of file linear_index_iterator.h.
|
inlineinherited |
Prefix increment.
Definition at line 183 of file linear_index_iterator.h.
|
inlineinherited |
Postfix increment.
Definition at line 189 of file linear_index_iterator.h.
|
inlineinherited |
Prefix decrement.
Definition at line 195 of file linear_index_iterator.h.
|
inlineinherited |
Postfix decrement.
Definition at line 201 of file linear_index_iterator.h.
|
inlineinherited |
Return an iterator that is n
entries ahead of the current one.
Definition at line 207 of file linear_index_iterator.h.
|
inlineinherited |
Return an iterator that is n
entries behind the current one.
Definition at line 213 of file linear_index_iterator.h.
|
inlineinherited |
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 234 of file linear_index_iterator.h.
|
inlineinherited |
Increment the iterator position by n
.
Definition at line 219 of file linear_index_iterator.h.
|
inlineinherited |
Decrement the iterator position by n
.
Definition at line 225 of file linear_index_iterator.h.
|
inlineinherited |
Dereferencing operator.
Definition at line 239 of file linear_index_iterator.h.
|
inlineinherited |
Dereferencing operator.
Definition at line 244 of file linear_index_iterator.h.
|
inlineinherited |
Comparison operator: uses the same ordering as operator<(), but also checks for equality.
This function is only valid if both iterators point into the same container.
Definition at line 279 of file linear_index_iterator.h.
|
inlineinherited |
Comparison operator: uses the same ordering as operator>(), but also checks for equality.
This function is only valid if both iterators point into the same container.
Definition at line 290 of file linear_index_iterator.h.
|
inlineinherited |
Comparison operator. Result is true if either the first row number is smaller or if the row numbers are equal and the first index is smaller.
This function is only valid if both iterators point into the same container.
Definition at line 299 of file linear_index_iterator.h.
|
inlineinherited |
Comparison operator. Works in the same way as operator<(), just the other way round.
Definition at line 307 of file linear_index_iterator.h.
|
protectedinherited |
Store an object of the accessor class.
Definition at line 324 of file linear_index_iterator.h.