FairRoot/PandaRoot
Public Member Functions | Public Attributes | Friends | List of all members
F32vec1 Class Reference

#include <PSEUDO_F32vec1.h>

Public Member Functions

float & operator[] (int i)
 
float operator[] (int i) const
 
 F32vec1 ()
 
 F32vec1 (const float &v0)
 
 operator float () const
 

Public Attributes

float v
 

Friends

F32vec1 rcp (const F32vec1 &a)
 
void operator+= (F32vec1 &a, const F32vec1 &b)
 
void operator-= (F32vec1 &a, const F32vec1 &b)
 
void operator*= (F32vec1 &a, const F32vec1 &b)
 
void operator/= (F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator< (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator<= (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator> (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator>= (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator& (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator| (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator|| (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator! (const F32vec1 &a)
 
F32vec1 if3 (const F32vec1 &a, const F32vec1 &b, const F32vec1 &c)
 
F32vec1 bool2int (const F32vec1 &a)
 
ostream & operator<< (ostream &strm, const F32vec1 &a)
 
istream & operator>> (istream &strm, F32vec1 &a)
 

Detailed Description

Definition at line 24 of file PSEUDO_F32vec1.h.

Constructor & Destructor Documentation

F32vec1::F32vec1 ( )
inline

Definition at line 33 of file PSEUDO_F32vec1.h.

33 {}
F32vec1::F32vec1 ( const float &  v0)
inline

Definition at line 34 of file PSEUDO_F32vec1.h.

References v.

34  {
35  v = v0;
36  }

Member Function Documentation

F32vec1::operator float ( ) const
inline

Definition at line 39 of file PSEUDO_F32vec1.h.

References v.

39 { return v; } /* Convert to __m128 */
float& F32vec1::operator[] ( int  i)
inline

Definition at line 30 of file PSEUDO_F32vec1.h.

References v.

30 { return v;}
float F32vec1::operator[] ( int  i) const
inline

Definition at line 31 of file PSEUDO_F32vec1.h.

References v.

31 { return v;}

Friends And Related Function Documentation

F32vec1 bool2int ( const F32vec1 a)
friend

Definition at line 112 of file PSEUDO_F32vec1.h.

112  { // mask returned
113  return if3(a,1,0);
114  }
friend F32vec1 if3(const F32vec1 &a, const F32vec1 &b, const F32vec1 &c)
F32vec1 if3 ( const F32vec1 a,
const F32vec1 b,
const F32vec1 c 
)
friend

Definition at line 103 of file PSEUDO_F32vec1.h.

103  {
104  F32vec1 z;
105  z[0] = (a[0]) ? b[0] : c[0];
106 
107  return z;
108  }
Double_t z
F32vec1 operator! ( const F32vec1 a)
friend

Definition at line 96 of file PSEUDO_F32vec1.h.

96  {
97  F32vec1 z;
98  z[0] = !a[0];
99 
100  return z;
101  }
Double_t z
F32vec1 operator& ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 91 of file PSEUDO_F32vec1.h.

91 { _op(a,b,&&) }
#define _op(A, B, O)
void operator*= ( F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 79 of file PSEUDO_F32vec1.h.

79 { a = a * b ; }
TTree * b
void operator+= ( F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 77 of file PSEUDO_F32vec1.h.

77 { a = a + b ; }
TTree * b
void operator-= ( F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 78 of file PSEUDO_F32vec1.h.

78 { a = a - b ; }
TTree * b
void operator/= ( F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 80 of file PSEUDO_F32vec1.h.

80 { a = a / b ; }
TTree * b
F32vec1 operator< ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 85 of file PSEUDO_F32vec1.h.

85 { _op(a,b,<) }
#define _op(A, B, O)
ostream& operator<< ( ostream &  strm,
const F32vec1 a 
)
friend

Definition at line 118 of file PSEUDO_F32vec1.h.

118  {
119  strm<<a[0];
120  return strm;
121  }
F32vec1 operator<= ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 86 of file PSEUDO_F32vec1.h.

86 { _op(a,b,<=) }
#define _op(A, B, O)
F32vec1 operator> ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 87 of file PSEUDO_F32vec1.h.

87 { _op(a,b,>) }
#define _op(A, B, O)
F32vec1 operator>= ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 88 of file PSEUDO_F32vec1.h.

88 { _op(a,b,>=) }
#define _op(A, B, O)
istream& operator>> ( istream &  strm,
F32vec1 a 
)
friend

Definition at line 123 of file PSEUDO_F32vec1.h.

123  {
124  float tmp;
125  strm>>tmp;
126  a = tmp;
127  return strm;
128  }
F32vec1 operator| ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 92 of file PSEUDO_F32vec1.h.

92 { _op(a,b,||) }
#define _op(A, B, O)
F32vec1 operator|| ( const F32vec1 a,
const F32vec1 b 
)
friend

Definition at line 93 of file PSEUDO_F32vec1.h.

93 { _op(a,b,||) }
#define _op(A, B, O)
F32vec1 rcp ( const F32vec1 a)
friend

Definition at line 53 of file PSEUDO_F32vec1.h.

53 { return 1./a; }
Int_t a
Definition: anaLmdDigi.C:126

Member Data Documentation

float F32vec1::v

Definition at line 28 of file PSEUDO_F32vec1.h.

Referenced by F32vec1(), operator float(), and operator[]().


The documentation for this class was generated from the following file: