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

Tuple2 Class Template Reference

Inheritance diagram for Tuple2:

Inheritance graph
[legend]
Collaboration diagram for Tuple2:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Type1, class Type2>
class Foam::Tuple2< Type1, Type2 >

Definition at line 65 of file Tuple2.H.


Public Member Functions

 Tuple2 ()
 Null constructor for lists.
 Tuple2 (const Type1 &f, const Type2 &s)
 Construct from components.
 Tuple2 (Istream &is)
 Construct from Istream.
const Type1 & first () const
 Return first.
Type1 & first ()
 Return first.
const Type2 & second () const
 Return second.
Type2 & second ()
 Return second.
Tuple2< Type2, Type1 > reverseTuple2 () const
 Return reverse pair.

Friends

bool operator== (const Tuple2< Type1, Type2 > &a, const Tuple2< Type1, Type2 > &b)
bool operator!= (const Tuple2< Type1, Type2 > &a, const Tuple2< Type1, Type2 > &b)
Istream & operator>> (Istream &is, Tuple2< Type1, Type2 > &t2)
 Read Tuple2 from Istream, discarding contents of existing Tuple2.
Ostream & operator (Ostream &os, const Tuple2< Type1, Type2 > &t2)

Constructor & Destructor Documentation

Tuple2 (  )  [inline]

Null constructor for lists.

Definition at line 78 of file Tuple2.H.

Tuple2 ( const Type1 &  f,
const Type2 &  s 
) [inline]

Construct from components.

Definition at line 82 of file Tuple2.H.

Tuple2 ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 89 of file Tuple2.H.


Member Function Documentation

const Type1& first (  )  const [inline]

Return first.

Definition at line 98 of file Tuple2.H.

Referenced by pointConstraint::pointConstraint(), and Tuple2< long, Foam::Vectorector< scalar > >::second().

Here is the caller graph for this function:

Type1& first (  )  [inline]

Return first.

Definition at line 104 of file Tuple2.H.

const Type2& second (  )  const [inline]

Return second.

Definition at line 110 of file Tuple2.H.

Referenced by Tuple2< long, Foam::Vectorector< scalar > >::second().

Here is the caller graph for this function:

Type2& second (  )  [inline]

Return second.

Definition at line 116 of file Tuple2.H.

Tuple2<Type2, Type1> reverseTuple2 (  )  const [inline]

Return reverse pair.

Definition at line 122 of file Tuple2.H.


Friends And Related Function Documentation

bool operator== ( const Tuple2< Type1, Type2 > &  a,
const Tuple2< Type1, Type2 > &  b 
) [friend]

Definition at line 131 of file Tuple2.H.

bool operator!= ( const Tuple2< Type1, Type2 > &  a,
const Tuple2< Type1, Type2 > &  b 
) [friend]

Definition at line 143 of file Tuple2.H.

Istream& operator>> ( Istream &  is,
Tuple2< Type1, Type2 > &  t2 
) [friend]

Read Tuple2 from Istream, discarding contents of existing Tuple2.

Referenced by Tuple2< long, Foam::Vectorector< scalar > >::Tuple2().

Ostream& operator ( Ostream &  os,
const Tuple2< Type1, Type2 > &  t2 
) [friend]


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