FbxPair< First, Second > Class Template Reference

FbxPair< First, Second > Class Template Reference

#include <fbxpair.h>

Class Description

template<typename First, typename Second>
class FbxPair< First, Second >

This class template holds a pair of objects.

Definition at line 22 of file fbxpair.h.

Public Member Functions

 FbxPair ()
 Constructor. More...
 
 FbxPair (const First &pFirst, const Second &pSecond)
 Constructor. More...
 
FbxPair< First, Second > & operator= (const FbxPair< First, Second > &pOther)
 Assignment operator. More...
 
bool operator== (const FbxPair< First, Second > &pOther)
 Comparison operator. More...
 
bool operator!= (const FbxPair< First, Second > &pOther)
 Inverse comparison operator. More...
 

Public Attributes

First mFirst
 The first object in the pair. More...
 
Second mSecond
 The second object in the pair. More...
 

Constructor & Destructor Documentation

FbxPair ( )
inline

Constructor.

Definition at line 26 of file fbxpair.h.

26 : mFirst(), mSecond() {}
Second mSecond
The second object in the pair.
Definition: fbxpair.h:57
First mFirst
The first object in the pair.
Definition: fbxpair.h:56
FbxPair ( const First &  pFirst,
const Second &  pSecond 
)
inline

Constructor.

Parameters
pFirstThe first object.
pSecondThe second object.

Definition at line 31 of file fbxpair.h.

31 : mFirst(pFirst), mSecond(pSecond) {}
Second mSecond
The second object in the pair.
Definition: fbxpair.h:57
First mFirst
The first object in the pair.
Definition: fbxpair.h:56

Member Function Documentation

FbxPair<First, Second>& operator= ( const FbxPair< First, Second > &  pOther)
inline

Assignment operator.

Parameters
pOtherThe pair to be copied.

Definition at line 35 of file fbxpair.h.

36  {
37  mFirst = pOther.mFirst;
38  mSecond = pOther.mSecond;
39  return *this;
40  }
Second mSecond
The second object in the pair.
Definition: fbxpair.h:57
First mFirst
The first object in the pair.
Definition: fbxpair.h:56
bool operator== ( const FbxPair< First, Second > &  pOther)
inline

Comparison operator.

Parameters
pOtherThe pair to be compared.

Definition at line 44 of file fbxpair.h.

45  {
46  return mFirst == pOther.mFirst && mSecond == pOther.mSecond;
47  }
Second mSecond
The second object in the pair.
Definition: fbxpair.h:57
First mFirst
The first object in the pair.
Definition: fbxpair.h:56
bool operator!= ( const FbxPair< First, Second > &  pOther)
inline

Inverse comparison operator.

Parameters
pOtherThe pair to be compared.

Definition at line 51 of file fbxpair.h.

52  {
53  return !operator==(pOther);
54  }
bool operator==(const FbxPair< First, Second > &pOther)
Comparison operator.
Definition: fbxpair.h:44

Member Data Documentation

First mFirst

The first object in the pair.

Definition at line 56 of file fbxpair.h.

Second mSecond

The second object in the pair.

Definition at line 57 of file fbxpair.h.


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