internals::SparsityPatternIterators::Iterator Class Reference

List of all members.

Public Member Functions

 Iterator (const SparsityPattern *sp, const unsigned int row, const unsigned int index)
Iteratoroperator++ ()
Iterator operator++ (int)
const Accessoroperator* () const
const Accessoroperator-> () const
bool operator== (const Iterator &) const
bool operator!= (const Iterator &) const
bool operator< (const Iterator &) const

Private Attributes

Accessor accessor


Detailed Description

STL conforming iterator walking over the elements of a sparsity pattern.

Constructor & Destructor Documentation

internals::SparsityPatternIterators::Iterator::Iterator ( const SparsityPattern sp,
const unsigned int  row,
const unsigned int  index 
)

Constructor. Create an iterator into the sparsity pattern sp for the given row and the index within it.


Member Function Documentation

Iterator& internals::SparsityPatternIterators::Iterator::operator++ (  ) 

Prefix increment.

Iterator internals::SparsityPatternIterators::Iterator::operator++ ( int   ) 

Postfix increment.

const Accessor& internals::SparsityPatternIterators::Iterator::operator* (  )  const

Dereferencing operator.

const Accessor* internals::SparsityPatternIterators::Iterator::operator-> (  )  const

Dereferencing operator.

bool internals::SparsityPatternIterators::Iterator::operator== ( const Iterator  )  const

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

bool internals::SparsityPatternIterators::Iterator::operator!= ( const Iterator  )  const

Inverse of ==.

bool internals::SparsityPatternIterators::Iterator::operator< ( 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.

This function is only valid if both iterators point into the same matrix.


Member Data Documentation

Store an object of the accessor class.


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

deal.II documentation generated on Sat Aug 15 16:52:41 2009 by doxygen 1.5.9