Public Member Functions | Protected Types | Protected Member Functions

matrix_row_major_iterator< ValueType, BlockSideLength > Class Template Reference

row-major iterator that points to single elements inside a matrix More...

#include <matrix.h>

Inheritance diagram for matrix_row_major_iterator< ValueType, BlockSideLength >:
Inheritance graph
[legend]
Collaboration diagram for matrix_row_major_iterator< ValueType, BlockSideLength >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 matrix_row_major_iterator (const matrix_iterator_type &matrix_iterator)
 convert from matrix_iterator
matrix_row_major_iteratoroperator++ ()
matrix_row_major_iteratoroperator-- ()

Protected Types

typedef matrix_iterator
< ValueType, BlockSideLength > 
matrix_iterator_type
typedef
matrix_iterator_type::matrix_type 
matrix_type
typedef
matrix_iterator_type::elem_size_type 
elem_size_type

Protected Member Functions

 matrix_row_major_iterator (matrix_type &matrix, const elem_size_type start_row, const elem_size_type start_col)
 create iterator pointing to given row and col
 matrix_row_major_iterator (matrix_type &matrix)
 create empty iterator

Detailed Description

template<typename ValueType, unsigned BlockSideLength>
class matrix_row_major_iterator< ValueType, BlockSideLength >

row-major iterator that points to single elements inside a matrix

Template Parameters:
ValueType type of contained objects (POD with no references to internal memory)
BlockSideLength side length of a matrix block

Constructor & Destructor Documentation

template<typename ValueType , unsigned BlockSideLength>
matrix_row_major_iterator< ValueType, BlockSideLength >::matrix_row_major_iterator ( matrix_type matrix,
const elem_size_type  start_row,
const elem_size_type  start_col 
) [inline, protected]

create iterator pointing to given row and col

template<typename ValueType , unsigned BlockSideLength>
matrix_row_major_iterator< ValueType, BlockSideLength >::matrix_row_major_iterator ( matrix_type matrix  )  [inline, protected]

create empty iterator

template<typename ValueType , unsigned BlockSideLength>
matrix_row_major_iterator< ValueType, BlockSideLength >::matrix_row_major_iterator ( const matrix_iterator_type matrix_iterator  )  [inline]

convert from matrix_iterator


The documentation for this class was generated from the following file: