Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

BlockMatrixIterators::Accessor< BlockMatrix, false > Class Template Reference

Inheritance diagram for BlockMatrixIterators::Accessor< BlockMatrix, false >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef BlockMatrix MatrixType
typedef BlockMatrix::value_type value_type

Public Member Functions

 Accessor (BlockMatrix *m, const unsigned int row, const unsigned int col)
unsigned int row () const
unsigned int column () const
value_type value () const
void set_value (value_type newval) const

Protected Member Functions

void advance ()
bool operator== (const Accessor &a) const

Protected Attributes

BlockMatrix * matrix
BlockMatrix::BlockType::iterator base_iterator

Friends

class MatrixIterator
class Accessor< BlockMatrix, true >

Detailed Description

template<class BlockMatrix>
class BlockMatrixIterators::Accessor< BlockMatrix, false >

Block matrix accessor for non const matrices.

Definition at line 113 of file block_matrix_base.h.


Member Typedef Documentation

template<class BlockMatrix >
typedef BlockMatrix BlockMatrixIterators::Accessor< BlockMatrix, false >::MatrixType

Type of the matrix used in this accessor.

Definition at line 122 of file block_matrix_base.h.

template<class BlockMatrix >
typedef BlockMatrix::value_type BlockMatrixIterators::Accessor< BlockMatrix, false >::value_type

Typedef the value type of the matrix we point into.

Reimplemented from BlockMatrixIterators::AccessorBase< BlockMatrix >.

Definition at line 128 of file block_matrix_base.h.


Constructor & Destructor Documentation

template<class BlockMatrix >
BlockMatrixIterators::Accessor< BlockMatrix, false >::Accessor ( BlockMatrix *  m,
const unsigned int  row,
const unsigned int  col 
)

Constructor. Since we use accessors only for read access, a const matrix pointer is sufficient.

Place the iterator at the beginning of the given row of the matrix, or create the end pointer if row equals the total number of rows in the matrix.


Member Function Documentation

template<class BlockMatrix >
unsigned int BlockMatrixIterators::Accessor< BlockMatrix, false >::row (  ) const

Row number of the element represented by this object.

template<class BlockMatrix >
unsigned int BlockMatrixIterators::Accessor< BlockMatrix, false >::column (  ) const

Column number of the element represented by this object.

template<class BlockMatrix >
value_type BlockMatrixIterators::Accessor< BlockMatrix, false >::value (  ) const

Value of the entry at the current position.

template<class BlockMatrix >
void BlockMatrixIterators::Accessor< BlockMatrix, false >::set_value ( value_type  newval ) const

Set new value.

template<class BlockMatrix >
void BlockMatrixIterators::Accessor< BlockMatrix, false >::advance (  ) [protected]

Move ahead one element.

template<class BlockMatrix >
bool BlockMatrixIterators::Accessor< BlockMatrix, false >::operator== ( const Accessor< BlockMatrix, false > &  a ) const [protected]

Compare this accessor with another one for equality.


Friends And Related Function Documentation

template<class BlockMatrix >
friend class MatrixIterator [friend]

Let the iterator class be a friend.

Reimplemented from BlockMatrixIterators::AccessorBase< BlockMatrix >.

Definition at line 194 of file block_matrix_base.h.

template<class BlockMatrix >
friend class Accessor< BlockMatrix, true > [friend]

Definition at line 195 of file block_matrix_base.h.


Member Data Documentation

template<class BlockMatrix >
BlockMatrix* BlockMatrixIterators::Accessor< BlockMatrix, false >::matrix [protected]

The matrix accessed.

Definition at line 175 of file block_matrix_base.h.

template<class BlockMatrix >
BlockMatrix::BlockType::iterator BlockMatrixIterators::Accessor< BlockMatrix, false >::base_iterator [protected]

Iterator of the underlying matrix class.

Definition at line 181 of file block_matrix_base.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:13 by doxygen 1.7.2