CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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 detailsBasic3DVector::z.

43  {
44  return Triplet<T1, T2, T3>(x, y, z);
45 }
Definition: Triplet.h:9
double double double z
Definition: DDAxes.h:10
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.

34  {
35  bool pair_less =
36  x.first < y.first || (!(y.first < x.first) && x.second < y.second);
37 
38  return pair_less ||
39  (!(y.first < x.first) && !(y.second < x.second) && x.third < y.third);
40 }
T2 second
Definition: Triplet.h:15
T3 third
Definition: Triplet.h:16
T1 first
Definition: Triplet.h:14
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.

28  {
29  return x.first == y.first && x.second == y.second && x.third==y.third;
30 }
T2 second
Definition: Triplet.h:15
T3 third
Definition: Triplet.h:16
T1 first
Definition: Triplet.h:14