STXXL
1.4.1
|
general iterator type that points to single elements inside a matrix
ValueType | type of contained objects (POD with no references to internal memory) |
BlockSideLength | side length of a matrix block |
Public Member Functions | |
matrix_iterator (const matrix_iterator &other) | |
~matrix_iterator () | |
bool | empty () const |
const elem_size_type & | get_col () const |
std::pair< elem_size_type, elem_size_type > | get_pos () const |
const elem_size_type & | get_row () const |
operator bool () const | |
ValueType & | operator* () |
Returns reference access to the element referenced by the iterator. The reference is only valid so long as the iterator is not moved. More... | |
matrix_iterator & | operator= (const matrix_iterator &other) |
bool | operator== (const matrix_iterator &other) const |
void | set_col (const elem_size_type new_col) |
void | set_pos (const elem_size_type new_row, const elem_size_type new_col) |
void | set_pos (const std::pair< elem_size_type, elem_size_type > new_pos) |
void | set_row (const elem_size_type new_row) |
Protected Types | |
typedef matrix_type::block_scheduler_type | block_scheduler_type |
typedef matrix_type::block_size_type | block_size_type |
typedef matrix_type::elem_size_type | elem_size_type |
typedef block_scheduler_type::internal_block_type | internal_block_type |
typedef matrix< ValueType, BlockSideLength > | matrix_type |
typedef matrix_type::swappable_block_matrix_type | swappable_block_matrix_type |
Protected Member Functions | |
matrix_iterator (matrix_type &matrix, const elem_size_type start_row, const elem_size_type start_col) | |
create iterator pointing to given row and col More... | |
matrix_iterator (matrix_type &matrix) | |
create empty iterator More... | |
void | acquire_current_iblock () |
void | release_current_iblock () |
void | set_empty () |
Protected Attributes | |
block_size_type | current_block_col |
block_size_type | current_block_row |
elem_size_type | current_col |
internal_block_type * | current_iblock |
elem_size_type | current_row |
matrix_type * | m |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 492 of file matrix.h.
References stxxl::matrix_iterator< ValueType, BlockSideLength >::current_iblock.
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 504 of file matrix.h.
References stxxl::matrix_iterator< ValueType, BlockSideLength >::current_col, stxxl::matrix_iterator< ValueType, BlockSideLength >::current_iblock, stxxl::matrix_iterator< ValueType, BlockSideLength >::current_row, and stxxl::matrix_iterator< ValueType, BlockSideLength >::m.
|
inline |
Definition at line 570 of file matrix.h.
References stxxl::matrix_iterator< ValueType, BlockSideLength >::current_col, stxxl::matrix_iterator< ValueType, BlockSideLength >::current_row, and stxxl::matrix_iterator< ValueType, BlockSideLength >::m.
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
Definition at line 443 of file matrix.h.
Referenced by stxxl::matrix_iterator< ValueType, BlockSideLength >::operator=(), and stxxl::matrix_iterator< ValueType, BlockSideLength >::operator==().
|
protected |
|
protected |
Definition at line 443 of file matrix.h.
Referenced by stxxl::matrix_iterator< ValueType, BlockSideLength >::operator=(), and stxxl::matrix_iterator< ValueType, BlockSideLength >::operator==().
|
protected |
Definition at line 442 of file matrix.h.
Referenced by stxxl::matrix_iterator< ValueType, BlockSideLength >::operator=(), and stxxl::matrix_iterator< ValueType, BlockSideLength >::operator==().