Reference documentation for deal.II version 8.4.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
BlockMatrixIterators::Accessor< BlockMatrixType, false > Class Template Reference

#include <deal.II/lac/block_matrix_base.h>

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

Public Types

typedef types::global_dof_index size_type
 
typedef BlockMatrixType MatrixType
 
typedef BlockMatrixType::value_type value_type
 
- Public Types inherited from BlockMatrixIterators::AccessorBase< BlockMatrixType >
typedef types::global_dof_index size_type
 
typedef BlockMatrixType::value_type value_type
 

Public Member Functions

 Accessor (BlockMatrixType *m, const size_type row, const size_type col)
 
size_type row () const
 
size_type column () const
 
value_type value () const
 
void set_value (value_type newval) const
 
- Public Member Functions inherited from BlockMatrixIterators::AccessorBase< BlockMatrixType >
 AccessorBase ()
 
unsigned int block_row () const
 
unsigned int block_column () const
 

Protected Member Functions

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

Protected Attributes

BlockMatrixType * matrix
 
BlockMatrixType::BlockType::iterator base_iterator
 
- Protected Attributes inherited from BlockMatrixIterators::AccessorBase< BlockMatrixType >
unsigned int row_block
 
unsigned int col_block
 

Friends

template<typename >
class MatrixIterator
 

Detailed Description

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

Block matrix accessor for non const matrices.

Definition at line 116 of file block_matrix_base.h.

Member Typedef Documentation

template<class BlockMatrixType >
typedef types::global_dof_index BlockMatrixIterators::Accessor< BlockMatrixType, false >::size_type

Declare type for container size.

Definition at line 124 of file block_matrix_base.h.

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

Type of the matrix used in this accessor.

Definition at line 129 of file block_matrix_base.h.

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

Typedef the value type of the matrix we point into.

Definition at line 134 of file block_matrix_base.h.

Constructor & Destructor Documentation

template<class BlockMatrixType >
BlockMatrixIterators::Accessor< BlockMatrixType, false >::Accessor ( BlockMatrixType *  m,
const size_type  row,
const size_type  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 BlockMatrixType >
size_type BlockMatrixIterators::Accessor< BlockMatrixType, false >::row ( ) const

Row number of the element represented by this object.

template<class BlockMatrixType >
size_type BlockMatrixIterators::Accessor< BlockMatrixType, false >::column ( ) const

Column number of the element represented by this object.

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

Value of the entry at the current position.

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

Set new value.

template<class BlockMatrixType >
void BlockMatrixIterators::Accessor< BlockMatrixType, false >::advance ( )
protected

Move ahead one element.

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

Compare this accessor with another one for equality.

Member Data Documentation

template<class BlockMatrixType >
BlockMatrixType* BlockMatrixIterators::Accessor< BlockMatrixType, false >::matrix
protected

The matrix accessed.

Definition at line 172 of file block_matrix_base.h.

template<class BlockMatrixType >
BlockMatrixType::BlockType::iterator BlockMatrixIterators::Accessor< BlockMatrixType, false >::base_iterator
protected

Iterator of the underlying matrix class.

Definition at line 177 of file block_matrix_base.h.


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