CMS 3D CMS Logo

Triplet.h File Reference

Go to the source code of this file.

Classes

struct  Triplet< T1, T2, T3 >
 triplet is identical to stl::pair exceot that it has three members instead of two (first, second, third). More...

Functions

template<class T1, class T2, class T3>
Triplet< T1, T2, T3 > make_Triplet (const T1 &x, const T2 &y, const T3 &z)
template<class T1, class T2, class T3>
bool operator< (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)
template<class T1, class T2, class T3>
bool operator== (const Triplet< T1, T2, T3 > &x, const Triplet< T1, T2, T3 > &y)


Function Documentation

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

Definition at line 43 of file Triplet.h.

00043                                                                                {
00044   return Triplet<T1, T2, T3>(x, y, z);
00045 }

template<class T1, class T2, class T3>
bool operator< ( const Triplet< T1, T2, T3 > &  x,
const Triplet< T1, T2, T3 > &  y 
) [inline]

Definition at line 33 of file Triplet.h.

References x, and y.

00034                                                     { 
00035   bool pair_less =  
00036     x.first < y.first || (!(y.first < x.first) && x.second < y.second); 
00037 
00038   return pair_less || 
00039     (!(y.first < x.first) && !(y.second < x.second) && x.third < y.third);
00040 }

template<class T1, class T2, class T3>
bool operator== ( const Triplet< T1, T2, T3 > &  x,
const Triplet< T1, T2, T3 > &  y 
) [inline]

Definition at line 27 of file Triplet.h.

References Triplet< T1, T2, T3 >::first, Triplet< T1, T2, T3 >::second, and Triplet< T1, T2, T3 >::third.

00028                                                      { 
00029   return x.first == y.first && x.second == y.second && x.third==y.third; 
00030 }


Generated on Tue Jun 9 17:56:01 2009 for CMSSW by  doxygen 1.5.4