Classes | Public Member Functions | Static Public Member Functions | Private Attributes

TrilinosWrappers::MatrixIterators::const_iterator Class Reference
[TrilinosWrappers]

List of all members.

Classes

class  Accessor

Public Member Functions

 const_iterator (const SparseMatrix *matrix, const unsigned int row, const unsigned int index)
const_iteratoroperator++ ()
const_iterator operator++ (int)
const Accessoroperator* () const
const Accessoroperator-> () const
bool operator== (const const_iterator &) const
bool operator!= (const const_iterator &) const
bool operator< (const const_iterator &) const

Static Public Member Functions

::ExceptionBaseExcInvalidIndexWithinRow (int arg1, int arg2) throw (errortext << "Attempt to access element " << arg2 << " of row " << arg1 << " which doesn't have that many elements." )

Private Attributes

Accessor accessor

Detailed Description

STL conforming iterator. This class acts as an iterator walking over the elements of Trilinos matrices. The implementation of this class is similar to the one for PETSc matrices.

Note that Trilinos stores the elements within each row in ascending order. This is opposed to the deal.II sparse matrix style where the diagonal element (if it exists) is stored before all other values, and the PETSc sparse matrices, where one can't guarantee a certain order of the elements.

Author:
Martin Kronbichler, Wolfgang Bangerth, 2008

Definition at line 75 of file trilinos_sparse_matrix.h.


Constructor & Destructor Documentation

TrilinosWrappers::MatrixIterators::const_iterator::const_iterator ( const SparseMatrix matrix,
const unsigned int  row,
const unsigned int  index 
)

Constructor. Create an iterator into the matrix matrix for the given row and the index within it.


Member Function Documentation

const_iterator& TrilinosWrappers::MatrixIterators::const_iterator::operator++ (  )

Prefix increment.

const_iterator TrilinosWrappers::MatrixIterators::const_iterator::operator++ ( int   )

Postfix increment.

const Accessor& TrilinosWrappers::MatrixIterators::const_iterator::operator* (  ) const

Dereferencing operator.

const Accessor* TrilinosWrappers::MatrixIterators::const_iterator::operator-> (  ) const

Dereferencing operator.

bool TrilinosWrappers::MatrixIterators::const_iterator::operator== ( const const_iterator  ) const

Comparison. True, if both iterators point to the same matrix position.

bool TrilinosWrappers::MatrixIterators::const_iterator::operator!= ( const const_iterator  ) const

Inverse of ==.

bool TrilinosWrappers::MatrixIterators::const_iterator::operator< ( const const_iterator  ) const

Comparison operator. Result is true if either the first row number is smaller or if the row numbers are equal and the first index is smaller.

::ExceptionBase& TrilinosWrappers::MatrixIterators::const_iterator::ExcInvalidIndexWithinRow ( int  arg1,
int  arg2 
) throw (errortext << "Attempt to access element " << arg2 << " of row " << arg1 << " which doesn't have that many elements." ) [static]

Exception


Member Data Documentation

Store an object of the accessor class.

Definition at line 266 of file trilinos_sparse_matrix.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:18 by doxygen 1.7.2