Dune::Torus< d >::ProcListIterator Class Reference

#include <grids.hh>

List of all members.


Detailed Description

template<int d>
class Dune::Torus< d >::ProcListIterator

ProcListIterator provides access to a list of neighboring processes. There are always $ 3^d-1 $ entries in such a list. Two lists are maintained, one for sending and one for receiving. The lists are sorted in such a way that in sequence message delivery ensures that e.g. a message send to the left neighbor is received as a message from the right neighbor.


Public Member Functions

 ProcListIterator (typename std::deque< CommPartner >::const_iterator iter)
 make an iterator
int rank () const
 return rank of neighboring process
iTupel delta () const
 return distance vector
int index () const
 return index in proclist
int distance () const
 return 1-norm of distance vector
bool operator== (const ProcListIterator &iter)
 Return true when two iterators point to same member.
bool operator!= (const ProcListIterator &iter)
 Return true when two iterators do not point to same member.
ProcListIteratoroperator++ ()
 Increment iterator to next cell.

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

Generated on 9 Apr 2008 with Doxygen (ver 1.5.2) [logfile].