Triplet.h File Reference

The Triplet data structure. More...

#include "../defs.h"

Go to the source code of this file.

Classes

struct  Triplet< T1, T2, T3 >
 Triplet holds three objects of arbitrary type. More...

Functions

template<typename T1 , typename T2 , typename T3 >
bool operator== (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Two Triplets of the same type are equal iff their members are equal.
template<typename T1 , typename T2 , typename T3 >
bool operator< (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Treat the triplet as a composite number.
template<typename T1 , typename T2 , typename T3 >
bool operator!= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Return true if the members are not all equal.
template<typename T1 , typename T2 , typename T3 >
bool operator> (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Use operator< to find the result.
template<typename T1 , typename T2 , typename T3 >
bool operator<= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Use operator< to find the result.
template<typename T1 , typename T2 , typename T3 >
bool operator>= (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
 Use operator< to find the result.
template<typename T1 , typename T2 , typename T3 >
Triplet< T1, T2, T3 > makeTriplet (const T1 &x, const T2 &y, const T3 &z)
 A convenience wrapper for creating a Triplet from three objects.

Detailed Description

The Triplet data structure.


Function Documentation

template<typename T1 , typename T2 , typename T3 >
Triplet<T1,T2,T3> makeTriplet ( const T1 &  x,
const T2 &  y,
const T3 &  z 
) [inline]

A convenience wrapper for creating a Triplet from three objects.

Parameters:
x The first object.
y The second object.
z The third object.
Returns:
A newly-constructed Triplet<> object of the appropriate type.
Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3