OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

Pair Class Template Reference

Inheritance diagram for Pair:

Inheritance graph
[legend]
Collaboration diagram for Pair:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 54 of file Pair.H.


Public Member Functions

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

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.

References Pair::first(), and Pair::second().

Here is the call graph for this function:

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.

References FixedList< Type, 2 >::operator[]().

Here is the call graph for this function:


Member Function Documentation

const Type& first (  )  const [inline]

Return first.

Definition at line 84 of file Pair.H.

References FixedList< Type, 2 >::operator[]().

Referenced by Pair::Pair(), Pair::reversePair(), and Pair::second().

Here is the call graph for this function:

Here is the caller graph for this function:

Type& first (  )  [inline]

Return first.

Definition at line 90 of file Pair.H.

References FixedList< Type, 2 >::operator[]().

Here is the call graph for this function:

const Type& second (  )  const [inline]

Return second.

Definition at line 96 of file Pair.H.

References FixedList< Type, 2 >::operator[]().

Referenced by Pair::Pair(), Pair::reversePair(), and Pair::second().

Here is the call graph for this function:

Here is the caller graph for this function:

Type& second (  )  [inline]

Return second.

Definition at line 102 of file Pair.H.

References Pair::first(), and Pair::second().

Here is the call graph for this function:

Pair<Type> reversePair (  )  const [inline]

Return reverse pair.

Definition at line 108 of file Pair.H.

References FatalErrorIn, Pair::first(), and Pair::second().

Here is the call graph for this function:

const Type& other ( const Type &  a  )  const [inline]

Return other.

Definition at line 114 of file Pair.H.


Friends And Related Function Documentation

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

Definition at line 141 of file Pair.H.

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

Definition at line 149 of file Pair.H.


The documentation for this class was generated from the following file:
  • src/OpenFOAM/primitives/Pair/Pair.H
Copyright © 2000-2007 OpenCFD Ltd