OpenFOAM logo
Open Source CFD Toolkit

Pair Class Template Reference

Inheritance diagram for Pair:

Inheritance graph
[legend]
Collaboration diagram for Pair:

Collaboration graph
[legend]
List of all members.

template<class Type>
class Foam::Pair< Type >


Public Member Functions

 Pair ()
 Null constructor for lists.
 Pair (const Type &f, const Type &s)
 Construct from components.
 Pair (Istream &is)
 Construct from Istream.
Type first () const
 Return first.
Type & first ()
 Return first.
Type second () const
 Return second.
Type & second ()
 Return second.
Pair< Type > reversePair () const
 Return reverse pair.

Friends

bool operator== (const Pair< Type > &a, const Pair< Type > &b)
bool operator!= (const Pair< Type > &a, const Pair< Type > &b)

Constructor & Destructor Documentation

Pair  )  [inline]
 

Null constructor for lists.

Definition at line 64 of file Pair.H.

Pair const Type &  f,
const Type &  s
[inline]
 

Construct from components.

Definition at line 68 of file Pair.H.

Pair Istream is  )  [inline]
 

Construct from Istream.

Definition at line 75 of file Pair.H.


Member Function Documentation

Type& first  )  [inline]
 

Return first.

Definition at line 90 of file Pair.H.

Type first  )  const [inline]
 

Return first.

Definition at line 84 of file Pair.H.

Pair<Type> reversePair  )  const [inline]
 

Return reverse pair.

Definition at line 108 of file Pair.H.

Type& second  )  [inline]
 

Return second.

Definition at line 102 of file Pair.H.

Type second  )  const [inline]
 

Return second.

Definition at line 96 of file Pair.H.


Friends And Related Function Documentation

bool operator!= const Pair< Type > &  a,
const Pair< Type > &  b
[friend]
 

Definition at line 124 of file Pair.H.

bool operator== const Pair< Type > &  a,
const Pair< Type > &  b
[friend]
 

Definition at line 116 of file Pair.H.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org