Chi-Tech
chi_math::SparseMatrix::EntriesIterator Class Reference

#include <chi_math_sparse_matrix.h>

Public Member Functions

 EntriesIterator (SparseMatrix &context, size_t row)
 
void Advance ()
 
EIt operator++ ()
 
EIt operator++ (int)
 
EntryReference operator* ()
 
bool operator== (const EIt &rhs) const
 
bool operator!= (const EIt &rhs) const
 

Private Types

typedef EntriesIterator EIt
 

Private Attributes

SparseMatrixsp_matrix
 
size_t ref_row_
 
size_t ref_col_
 

Detailed Description

Iterator to loop over all matrix entries.

Definition at line 161 of file chi_math_sparse_matrix.h.

Member Typedef Documentation

◆ EIt

Constructor & Destructor Documentation

◆ EntriesIterator()

chi_math::SparseMatrix::EntriesIterator::EntriesIterator ( SparseMatrix context,
size_t  row 
)
inlineexplicit

Definition at line 171 of file chi_math_sparse_matrix.h.

Member Function Documentation

◆ Advance()

void chi_math::SparseMatrix::EntriesIterator::Advance ( )
inline

Definition at line 175 of file chi_math_sparse_matrix.h.

◆ operator!=()

bool chi_math::SparseMatrix::EntriesIterator::operator!= ( const EIt rhs) const
inline

Definition at line 200 of file chi_math_sparse_matrix.h.

◆ operator*()

EntryReference chi_math::SparseMatrix::EntriesIterator::operator* ( )
inline

Definition at line 191 of file chi_math_sparse_matrix.h.

◆ operator++() [1/2]

EIt chi_math::SparseMatrix::EntriesIterator::operator++ ( )
inline

Definition at line 188 of file chi_math_sparse_matrix.h.

◆ operator++() [2/2]

EIt chi_math::SparseMatrix::EntriesIterator::operator++ ( int  )
inline

Definition at line 189 of file chi_math_sparse_matrix.h.

◆ operator==()

bool chi_math::SparseMatrix::EntriesIterator::operator== ( const EIt rhs) const
inline

Definition at line 197 of file chi_math_sparse_matrix.h.

Field Documentation

◆ ref_col_

size_t chi_math::SparseMatrix::EntriesIterator::ref_col_
private

Definition at line 168 of file chi_math_sparse_matrix.h.

◆ ref_row_

size_t chi_math::SparseMatrix::EntriesIterator::ref_row_
private

Definition at line 167 of file chi_math_sparse_matrix.h.

◆ sp_matrix

SparseMatrix& chi_math::SparseMatrix::EntriesIterator::sp_matrix
private

Definition at line 166 of file chi_math_sparse_matrix.h.


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