Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
DistributedVector::Iterator Class Reference

#include <DistributedVector.hpp>

+ Collaboration diagram for DistributedVector::Iterator:

Public Member Functions

bool operator!= (const Iterator &rOther)
 
Iteratoroperator++ ()
 

Public Attributes

unsigned Local
 
unsigned Global
 

Detailed Description

Iterator class allows one to iterate over the elements of the distributed vector on this process.

Definition at line 167 of file DistributedVector.hpp.

Member Function Documentation

◆ operator!=()

bool DistributedVector::Iterator::operator!= ( const Iterator rOther)

Compare two indices for inequality.

Parameters
rOther
Returns
true when not equal

Definition at line 110 of file DistributedVector.cpp.

References Global.

◆ operator++()

DistributedVector::Iterator & DistributedVector::Iterator::operator++ ( )

Increment the iterator to the next index.

Returns
incremented operator

Definition at line 115 of file DistributedVector.cpp.

Member Data Documentation

◆ Global

unsigned DistributedVector::Iterator::Global

Current index, global to the whole PETSc vector.

Definition at line 171 of file DistributedVector.hpp.

Referenced by operator!=().

◆ Local

unsigned DistributedVector::Iterator::Local

Current index, local to this process.

Definition at line 170 of file DistributedVector.hpp.


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