CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mathSSE::Vec2< T > Union Template Reference

#include <SSEVec.h>

Public Member Functions

template<int N>
Vec2 get1 () const
 
Toperator[] (unsigned int n)
 
T operator[] (unsigned int n) const
 
void set (T f1, T f2)
 
 Vec2 ()
 
 Vec2 (T f1)
 
 Vec2 (T f1, T f2)
 
template<typename U >
 Vec2 (Vec2< U > v)
 
 Vec2 (Vec4< T > v4)
 

Public Attributes

T arr [2]
 

Detailed Description

template<typename T>
union mathSSE::Vec2< T >

Definition at line 118 of file SSEVec.h.

Constructor & Destructor Documentation

◆ Vec2() [1/5]

template<typename T>
mathSSE::Vec2< T >::Vec2 ( )
inline

Definition at line 119 of file SSEVec.h.

119  {
120  arr[0] = 0;
121  arr[1] = 0;
122  }

Referenced by mathSSE::Vec2< float >::get1().

◆ Vec2() [2/5]

template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1,
T  f2 
)
inline

Definition at line 123 of file SSEVec.h.

123  {
124  arr[0] = f1;
125  arr[1] = f2;
126  }

◆ Vec2() [3/5]

template<typename T>
mathSSE::Vec2< T >::Vec2 ( T  f1)
inlineexplicit

Definition at line 127 of file SSEVec.h.

127  {
128  arr[0] = f1;
129  arr[1] = f1;
130  }

◆ Vec2() [4/5]

template<typename T>
template<typename U >
mathSSE::Vec2< T >::Vec2 ( Vec2< U >  v)
inline

Definition at line 149 of file SSEVec.h.

149  {
150  arr[0] = v[0];
151  arr[1] = v[1];
152  }

◆ Vec2() [5/5]

template<typename T>
mathSSE::Vec2< T >::Vec2 ( Vec4< T v4)
inline

Definition at line 208 of file SSEVec.h.

208  {
209  arr[0] = v4[0];
210  arr[1] = v4[1];
211  }

Member Function Documentation

◆ get1()

template<typename T>
template<int N>
Vec2 mathSSE::Vec2< T >::get1 ( ) const
inline

Definition at line 138 of file SSEVec.h.

138  {
139  return Vec2(arr[N], arr[N]);
140  }

◆ operator[]() [1/2]

template<typename T>
T& mathSSE::Vec2< T >::operator[] ( unsigned int  n)
inline

Definition at line 156 of file SSEVec.h.

156 { return arr[n]; }

◆ operator[]() [2/2]

template<typename T>
T mathSSE::Vec2< T >::operator[] ( unsigned int  n) const
inline

Definition at line 158 of file SSEVec.h.

158 { return arr[n]; }

◆ set()

template<typename T>
void mathSSE::Vec2< T >::set ( T  f1,
T  f2 
)
inline

Definition at line 132 of file SSEVec.h.

132  {
133  arr[0] = f1;
134  arr[1] = f2;
135  }

Member Data Documentation

◆ arr

template<typename T>
T mathSSE::Vec2< T >::arr[2]
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
mathSSE::Vec2::arr
T arr[2]
Definition: SSEVec.h:160
findQualityFiles.v
v
Definition: findQualityFiles.py:179
N
#define N
Definition: blowfish.cc:9
DeadROC_duringRun.f2
f2
Definition: DeadROC_duringRun.py:220
mathSSE::Vec2::Vec2
Vec2()
Definition: SSEVec.h:119
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219