Reference documentation for deal.II version 8.5.1
|
#include <deal.II/lac/dynamic_sparsity_pattern.h>
Public Member Functions | |
Accessor (const DynamicSparsityPattern *sparsity_pattern, const size_type row, const unsigned int index_within_row) | |
Accessor (const DynamicSparsityPattern *sparsity_pattern) | |
size_type | row () const |
size_type | index () const |
size_type | column () const |
bool | operator== (const Accessor &) const |
bool | operator< (const Accessor &) const |
Protected Member Functions | |
void | advance () |
Protected Attributes | |
const DynamicSparsityPattern * | sparsity_pattern |
size_type | current_row |
std::vector< size_type >::const_iterator | current_entry |
std::vector< size_type >::const_iterator | end_of_row |
Friends | |
class | Iterator |
Accessor class for iterators into objects of type DynamicSparsityPattern.
Note that this class only allows read access to elements, providing their row and column number (or alternatively the index within the complete sparsity pattern). It does not allow modifying the sparsity pattern itself.
Definition at line 64 of file dynamic_sparsity_pattern.h.
|
inline |
Constructor.
Definition at line 643 of file dynamic_sparsity_pattern.h.
|
inline |
Constructor. Construct the end accessor for the given sparsity pattern.
Definition at line 681 of file dynamic_sparsity_pattern.h.
|
inline |
Row number of the element represented by this object.
Definition at line 693 of file dynamic_sparsity_pattern.h.
|
inline |
Index within the current row of the element represented by this object.
Definition at line 715 of file dynamic_sparsity_pattern.h.
|
inline |
Column number of the element represented by this object.
Definition at line 704 of file dynamic_sparsity_pattern.h.
|
inline |
Comparison. True, if both iterators point to the same matrix position.
Definition at line 733 of file dynamic_sparsity_pattern.h.
|
inline |
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 sparsity pattern.
Definition at line 749 of file dynamic_sparsity_pattern.h.
|
inlineprotected |
Move the accessor to the next nonzero entry in the matrix.
Definition at line 777 of file dynamic_sparsity_pattern.h.
|
friend |
Grant access to iterator class.
Definition at line 141 of file dynamic_sparsity_pattern.h.
|
protected |
The sparsity pattern we operate on accessed.
Definition at line 112 of file dynamic_sparsity_pattern.h.
|
protected |
The row we currently point into.
Definition at line 117 of file dynamic_sparsity_pattern.h.
|
protected |
A pointer to the element within the current row that we currently point to.
Definition at line 123 of file dynamic_sparsity_pattern.h.
|
protected |
A pointer to the end of the current row. We store this to make comparison against the end of line iterator cheaper as it otherwise needs to do the IndexSet translation from row index to the index within the 'lines' array of DynamicSparsityPattern.
Definition at line 131 of file dynamic_sparsity_pattern.h.