Reference documentation for deal.II version Git ede8f93e86 2020-12-03 14:59:20 -0700
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Protected Attributes | Friends | List of all members
SparseMatrixEZ< number >::const_iterator::Accessor Class Reference

Public Member Functions

 Accessor (const SparseMatrixEZ< number > *matrix, const size_type row, const unsigned short index)
 
size_type row () const
 
unsigned short index () const
 
size_type column () const
 
number value () const
 

Protected Attributes

const SparseMatrixEZ< number > * matrix
 
size_type a_row
 
unsigned short a_index
 

Friends

class const_iterator
 

Detailed Description

template<typename number>
class SparseMatrixEZ< number >::const_iterator::Accessor

Accessor class for iterators

Definition at line 184 of file sparse_matrix_ez.h.

Constructor & Destructor Documentation

◆ Accessor()

template<typename number>
SparseMatrixEZ< number >::const_iterator::Accessor::Accessor ( const SparseMatrixEZ< number > *  matrix,
const size_type  row,
const unsigned short  index 
)
inline

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

Definition at line 939 of file sparse_matrix_ez.h.

Member Function Documentation

◆ row()

template<typename number >
SparseMatrixEZ< number >::size_type SparseMatrixEZ< number >::const_iterator::Accessor::row ( ) const
inline

Row number of the element represented by this object.

Definition at line 951 of file sparse_matrix_ez.h.

◆ index()

template<typename number >
unsigned short SparseMatrixEZ< number >::const_iterator::Accessor::index ( ) const
inline

Index in row of the element represented by this object.

Definition at line 967 of file sparse_matrix_ez.h.

◆ column()

template<typename number >
SparseMatrixEZ< number >::size_type SparseMatrixEZ< number >::const_iterator::Accessor::column ( ) const
inline

Column number of the element represented by this object.

Definition at line 959 of file sparse_matrix_ez.h.

◆ value()

template<typename number >
number SparseMatrixEZ< number >::const_iterator::Accessor::value ( ) const
inline

Value of this matrix entry.

Definition at line 976 of file sparse_matrix_ez.h.

Friends And Related Function Documentation

◆ const_iterator

template<typename number>
friend class const_iterator
friend

Definition at line 236 of file sparse_matrix_ez.h.

Member Data Documentation

◆ matrix

template<typename number>
const SparseMatrixEZ<number>* SparseMatrixEZ< number >::const_iterator::Accessor::matrix
protected

The matrix accessed.

Definition at line 223 of file sparse_matrix_ez.h.

◆ a_row

template<typename number>
size_type SparseMatrixEZ< number >::const_iterator::Accessor::a_row
protected

Current row number.

Definition at line 228 of file sparse_matrix_ez.h.

◆ a_index

template<typename number>
unsigned short SparseMatrixEZ< number >::const_iterator::Accessor::a_index
protected

Current index in row.

Definition at line 233 of file sparse_matrix_ez.h.


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