Pair< Type > Class Template Reference
An ordered pair of two objects of type <T> with
first() and
second() elements.
More...
List of all members.
Detailed Description
template<class Type>
class Foam::Pair< Type >
An ordered pair of two objects of type <T> with
first() and
second() elements.
- See also:
- Foam::Tuple2 for storing two objects of dissimilar types.
Definition at line 44 of file Pair.H.
Constructor & Destructor Documentation
Null constructor.
Definition at line 54 of file Pair.H.
Construct from components.
Definition at line 58 of file Pair.H.
Member Function Documentation
| const Type& first |
( |
|
) |
const [inline] |
Return first.
Definition at line 80 of file Pair.H.
| const Type& second |
( |
|
) |
const [inline] |
| Type& second |
( |
|
) |
[inline] |
Return second.
Definition at line 92 of file Pair.H.
| Pair<Type> reversePair |
( |
|
) |
const [inline] |
Return reverse pair.
Definition at line 98 of file Pair.H.
| const Type& other |
( |
const Type & |
a |
) |
const [inline] |
Return other.
Definition at line 104 of file Pair.H.
| static int compare |
( |
const Pair< Type > & |
a, |
|
|
const Pair< Type > & |
b | |
|
) |
| | [inline, static] |
compare Pairs
- 0: different
- +1: identical
- -1: same pair, but reversed order
Definition at line 135 of file Pair.H.
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
- src/OpenFOAM/primitives/Pair/Pair.H
Copyright © 2000-2009 OpenCFD Ltd