dune-common  2.4.1
Public Types | Public Member Functions | Friends | List of all members
Dune::IndexPair< TG, TL > Class Template Reference

A pair consisting of a global and local index. More...

#include <dune/common/parallel/indexset.hh>

Public Types

typedef TG GlobalIndex
 the type of the global index. More...
 
typedef TL LocalIndex
 the type of the local index. More...
 

Public Member Functions

 IndexPair (const GlobalIndex &global, const LocalIndex &local)
 Constructs a new Pair. More...
 
 IndexPair ()
 Construct a new Pair. More...
 
 IndexPair (const GlobalIndex &global)
 Constructs a new Pair. More...
 
const GlobalIndex & global () const
 Get the global index. More...
 
LocalIndex & local ()
 Get the local index. More...
 
const LocalIndex & local () const
 Get the local index. More...
 
void setLocal (int index)
 Set the local index. More...
 

Friends

std::ostream & operator<< (std::ostream &, const IndexPair< TG, TL > &)
 Print an index pair. More...
 
bool operator== (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator!= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator< (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator> (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator<= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator>= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
 
bool operator== (const IndexPair< TG, TL > &, const TG &)
 
bool operator!= (const IndexPair< TG, TL > &, const TG &)
 
bool operator< (const IndexPair< TG, TL > &, const TG &)
 
bool operator> (const IndexPair< TG, TL > &, const TG &)
 
bool operator<= (const IndexPair< TG, TL > &, const TG &)
 
bool operator>= (const IndexPair< TG, TL > &, const TG &)
 

Detailed Description

template<class TG, class TL>
class Dune::IndexPair< TG, TL >

A pair consisting of a global and local index.


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