- Home
- About DUNE
- Download
- Documentation
- Community
- Development
A collective iterator for moving over the remote indices for all processes collectively. More...
#include <dune/common/parallel/remoteindices.hh>
Classes | |
class | iterator |
Iterator over the valid underlying iterators. More... | |
Public Types | |
typedef std::map< int, std::pair< RemoteIndexList *, RemoteIndexList * > > | RemoteIndexMap |
The type of the map from rank to remote index list. | |
Public Member Functions | |
CollectiveIterator (const RemoteIndexMap &map_, bool send) | |
Constructor. | |
void | advance (const GlobalIndex &global) |
Advances all underlying iterators. | |
void | advance (const GlobalIndex &global, const Attribute &attribute) |
Advances all underlying iterators. | |
CollectiveIterator & | operator++ () |
bool | empty () |
Checks whether there are still iterators in the map. | |
iterator | begin () |
iterator | end () |
A collective iterator for moving over the remote indices for all processes collectively.
typedef std::map<int, std::pair<RemoteIndexList*,RemoteIndexList*> > Dune::CollectiveIterator< T, A >::RemoteIndexMap |
The type of the map from rank to remote index list.
Dune::CollectiveIterator< T, A >::CollectiveIterator | ( | const RemoteIndexMap & | map_, | |
bool | send | |||
) | [inline] |
Constructor.
map_ | The map of the remote indices. | |
send | True if we want iterate over the remote indices used for sending. |
References Dune::SLList< T, A >::begin(), and Dune::SLList< T, A >::end().
void Dune::CollectiveIterator< T, A >::advance | ( | const GlobalIndex & | global | ) | [inline] |
Advances all underlying iterators.
All iterators are advanced until they point to a remote index whose global id is bigger or equal to global. Iterators pointing to their end are removed.
global | The index we search for. |
void Dune::CollectiveIterator< T, A >::advance | ( | const GlobalIndex & | global, | |
const Attribute & | attribute | |||
) | [inline] |
Advances all underlying iterators.
All iterators are advanced until they point to a remote index whose global id is bigger or equal to global. Iterators pointing to their end are removed.
global | The index we search for. | |
attribute | The attribute we search for. |
CollectiveIterator< T, A >::iterator Dune::CollectiveIterator< T, A >::begin | ( | ) | [inline] |
bool Dune::CollectiveIterator< T, A >::empty | ( | ) | [inline] |
Checks whether there are still iterators in the map.
CollectiveIterator< T, A >::iterator Dune::CollectiveIterator< T, A >::end | ( | ) | [inline] |
CollectiveIterator< T, A > & Dune::CollectiveIterator< T, A >::operator++ | ( | ) | [inline] |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].