CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
mathSSE::Vec4< T > Union Template Reference

#include <SSEVec.h>

Public Member Functions

T __attribute__ ((aligned(16))) arr[4]
 
template<int N>
Vec4 get1 () const
 
void set (float f1, float f2, float f3, float f4=0)
 
void set1 (float f1)
 
 Vec4 ()
 
 Vec4 (float f1, float f2, float f3, float f4=0)
 
 Vec4 (float f1)
 
Vec2< Txy () const
 
Vec2< Tzw () const
 

Public Attributes

OldVec< To
 

Detailed Description

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

Definition at line 176 of file SSEVec.h.

Constructor & Destructor Documentation

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

Definition at line 226 of file SSEVec.h.

Referenced by mathSSE::Vec4< align::Scalar >::get1().

226  {
227  arr[0] = 0; arr[1] = 0; arr[2] = 0; arr[3]=0;
228  }
template<typename T>
mathSSE::Vec4< T >::Vec4 ( float  f1,
float  f2,
float  f3,
float  f4 = 0 
)
inline

Definition at line 229 of file SSEVec.h.

229  {
230  arr[0] = f1; arr[1] = f2; arr[2] = f3; arr[3]=f4;
231  }
template<typename T>
mathSSE::Vec4< T >::Vec4 ( float  f1)
inlineexplicit

Definition at line 232 of file SSEVec.h.

232  {
233  set1(f1);
234  }
void set1(float f1)
Definition: SSEVec.h:238

Member Function Documentation

template<typename T>
T mathSSE::Vec4< T >::__attribute__ ( (aligned(16))  )
template<typename T>
template<int N>
Vec4 mathSSE::Vec4< T >::get1 ( ) const
inline

Definition at line 242 of file SSEVec.h.

242  {
243  return Vec4(arr[N],arr[N],arr[N],arr[N]);
244  }
#define N
Definition: blowfish.cc:9
template<typename T>
void mathSSE::Vec4< T >::set ( float  f1,
float  f2,
float  f3,
float  f4 = 0 
)
inline

Definition at line 235 of file SSEVec.h.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

235  {
236  arr[0] = f1; arr[1] = f2; arr[2] = f3; arr[3]=f4;
237  }
template<typename T>
void mathSSE::Vec4< T >::set1 ( float  f1)
inline

Definition at line 238 of file SSEVec.h.

Referenced by mathSSE::Vec4< double >::Vec4(), and mathSSE::Vec4< align::Scalar >::Vec4().

238  {
239  arr[0] = f1; arr[1] = f1; arr[2] = f1; arr[3]=f1;
240  }
template<typename T>
Vec2<T> mathSSE::Vec4< T >::xy ( ) const
inline

Definition at line 251 of file SSEVec.h.

Referenced by geometryXMLparser.Alignable::covariance().

251 { return Vec2<T>(arr[0],arr[1]);}
template<typename T>
Vec2<T> mathSSE::Vec4< T >::zw ( ) const
inline

Definition at line 252 of file SSEVec.h.

252 { return Vec2<T>(arr[2],arr[3]);}

Member Data Documentation

template<typename T>
OldVec<T> mathSSE::Vec4< T >::o

Definition at line 257 of file SSEVec.h.