Reference documentation for deal.II version 9.5.0
|
Iterator class for both matrix-like tables, i.e., Table<2, T> and TransposeTable. More...
#include <deal.II/base/table.h>
Public Types | |
using | size_type = typename TableType::size_type |
using | container_pointer_type = typename std::conditional< Constness, const TableType *, TableType * >::type |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = Accessor< TableType, Constness, storage_order > |
using | difference_type = std::ptrdiff_t |
using | reference = const value_type & |
using | pointer = const value_type * |
Public Member Functions | |
Iterator (const Accessor< TableType, Constness, storage_order > &accessor) | |
Iterator (const container_pointer_type object) | |
Iterator (const container_pointer_type object, const size_type row, const size_type column) | |
Iterator (const Iterator< TableType, false, storage_order > &i) | |
Iterator (const container_pointer_type container, const std::ptrdiff_t linear_index) | |
Iterator< TableType, Constness, storage_order > & | operator++ () |
Iterator< TableType, Constness, storage_order > | operator++ (int) |
Iterator< TableType, Constness, storage_order > & | operator-- () |
Iterator< TableType, Constness, storage_order > | operator-- (int) |
Iterator< TableType, Constness, storage_order > | operator+ (const difference_type n) const |
Iterator< TableType, Constness, storage_order > | operator- (const difference_type n) const |
difference_type | operator- (const Iterator< TableType, Constness, storage_order > &p) const |
Iterator< TableType, Constness, storage_order > & | operator+= (const difference_type n) |
Iterator< TableType, Constness, storage_order > & | operator-= (const difference_type n) |
reference | operator* () const |
pointer | operator-> () const |
bool | operator<= (const Iterator< TableType, Constness, storage_order > &) const |
bool | operator>= (const Iterator< TableType, Constness, storage_order > &) const |
bool | operator< (const Iterator< TableType, Constness, storage_order > &) const |
bool | operator> (const Iterator< TableType, Constness, storage_order > &) const |
Protected Attributes | |
Accessor< TableType, Constness, storage_order > | accessor |
Iterator class for both matrix-like tables, i.e., Table<2, T> and TransposeTable.
TableType | the type of the Table, e.g., Table<2, T> or TransposeTable. |
Constness | whether or not this is a constant iterator. |
storage_order | The storage scheme of the underlying table, e.g., Storage::row_major for Table<2, T>. |
using MatrixTableIterators::Iterator< TableType, Constness, storage_order >::size_type = typename TableType::size_type |
using MatrixTableIterators::Iterator< TableType, Constness, storage_order >::container_pointer_type = typename std:: conditional<Constness, const TableType *, TableType *>::type |
|
inherited |
Iterator category.
Definition at line 148 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 155 of file linear_index_iterator.h.
|
inherited |
Difference type.
Definition at line 160 of file linear_index_iterator.h.
|
inherited |
Reference type.
Definition at line 165 of file linear_index_iterator.h.
|
inherited |
Pointer type.
Definition at line 170 of file linear_index_iterator.h.
MatrixTableIterators::Iterator< TableType, Constness, storage_order >::Iterator | ( | const Accessor< TableType, Constness, storage_order > & | accessor | ) |
Constructor from an accessor.
MatrixTableIterators::Iterator< TableType, Constness, storage_order >::Iterator | ( | const container_pointer_type | object | ) |
Constructor. Create the end iterator for a table.
MatrixTableIterators::Iterator< TableType, Constness, storage_order >::Iterator | ( | const container_pointer_type | object, |
const size_type | row, | ||
const size_type | column | ||
) |
Constructor for a particular table entry.
MatrixTableIterators::Iterator< TableType, Constness, storage_order >::Iterator | ( | const Iterator< TableType, false, storage_order > & | i | ) |
Copy constructor from a non-const iterator.
MatrixTableIterators::Iterator< TableType, Constness, storage_order >::Iterator | ( | const container_pointer_type | container, |
const std::ptrdiff_t | linear_index | ||
) |
Constructor for an entry with a particular linear index.
|
inlineinherited |
Prefix increment.
Definition at line 187 of file linear_index_iterator.h.
|
inlineinherited |
Postfix increment.
Definition at line 193 of file linear_index_iterator.h.
|
inlineinherited |
Prefix decrement.
Definition at line 199 of file linear_index_iterator.h.
|
inlineinherited |
Postfix decrement.
Definition at line 205 of file linear_index_iterator.h.
|
inlineinherited |
Return an iterator that is n
entries ahead of the current one.
Definition at line 211 of file linear_index_iterator.h.
|
inlineinherited |
Return an iterator that is n
entries behind the current one.
Definition at line 217 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 238 of file linear_index_iterator.h.
|
inlineinherited |
Increment the iterator position by n
.
Definition at line 223 of file linear_index_iterator.h.
|
inlineinherited |
Decrement the iterator position by n
.
Definition at line 229 of file linear_index_iterator.h.
|
inlineinherited |
Dereferencing operator.
Definition at line 244 of file linear_index_iterator.h.
|
inlineinherited |
Dereferencing operator.
Definition at line 250 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 285 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 296 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 305 of file linear_index_iterator.h.
|
inlineinherited |
Comparison operator. Works in the same way as operator<(), just the other way round.
Definition at line 313 of file linear_index_iterator.h.
|
protectedinherited |
Store an object of the accessor class.
Definition at line 330 of file linear_index_iterator.h.