CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_1/src/TrackingTools/GsfTracking/interface/Triplet.h File Reference

Go to the source code of this file.

Classes

struct  Triplet< T1, T2, T3 >

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.

References x, detailsBasic3DVector::y, and z.

                                                                               {
  return Triplet<T1, T2, T3>(x, y, z);
}
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 detailsBasic3DVector::y.

                                                    { 
  bool pair_less =  
    x.first < y.first || (!(y.first < x.first) && x.second < y.second); 

  return pair_less || 
    (!(y.first < x.first) && !(y.second < x.second) && x.third < y.third);
}
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.

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