CMS 3D CMS Logo

LinearEquation3< T >::Array3< U > Class Template Reference

#include <TrackPropagation/NavGeometry/src/LinearEquation3.h>

List of all members.

Public Member Functions

 Array3 (const Basic3DVector< U > &v)
 Array3 (U a0, U a1, U a2)
 Array3 ()
Array3 operator * (U t) const
void operator-= (const Array3 &other)
Array3operator= (const Basic3DVector< U > &v)
Array3operator= (const Array3 &other)
const U & operator[] (int i) const
U & operator[] (int i)
void subtractScaled (const Array3 &a, U c)

Private Attributes

a_ [3]


Detailed Description

template<class T>
template<class U>
class LinearEquation3< T >::Array3< U >

Definition at line 17 of file LinearEquation3.h.


Constructor & Destructor Documentation

template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 (  )  [inline]

Definition at line 19 of file LinearEquation3.h.

Referenced by LinearEquation3< T >::Array3< U >::operator *().

00019 {}

template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( a0,
a1,
a2 
) [inline]

Definition at line 20 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

00020 { a_[0] = a0; a_[1] = a1; a_[2] = a2;}

template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( const Basic3DVector< U > &  v  )  [inline]

Definition at line 21 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

00021                                        {
00022       a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
00023     }


Member Function Documentation

template<class T>
template<class U>
Array3 LinearEquation3< T >::Array3< U >::operator * ( t  )  const [inline]

Definition at line 43 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and LinearEquation3< T >::Array3< U >::Array3().

00043                                  {
00044       return Array3( a_[0]*t, a_[1]*t, a_[2]*t);
00045     }

template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::operator-= ( const Array3< U > &  other  )  [inline]

Definition at line 37 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

00037                                           {
00038       a_[0] -= other[0];
00039       a_[1] -= other[1];
00040       a_[2] -= other[2];
00041     }

template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Basic3DVector< U > &  v  )  [inline]

Definition at line 30 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

00030                                                  {
00031       a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
00032       return *this;
00033     }

template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Array3< U > &  other  )  [inline]

Definition at line 25 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

00025                                             {
00026       a_[0] = other[0]; a_[1] = other[1]; a_[2] = other[2];
00027       return *this;
00028     }

template<class T>
template<class U>
const U& LinearEquation3< T >::Array3< U >::operator[] ( int  i  )  const [inline]

Definition at line 36 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

00036 { return a_[i];}

template<class T>
template<class U>
U& LinearEquation3< T >::Array3< U >::operator[] ( int  i  )  [inline]

Definition at line 35 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

00035 { return a_[i];}

template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::subtractScaled ( const Array3< U > &  a,
c 
) [inline]

Definition at line 47 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

Referenced by LinearEquation3< T >::solution().

00047                                                {
00048       a_[0] -= a[0]*c;  a_[1] -= a[1]*c;  a_[2] -= a[2]*c; 
00049     }


Member Data Documentation

template<class T>
template<class U>
U LinearEquation3< T >::Array3< U >::a_[3] [private]

Definition at line 52 of file LinearEquation3.h.

Referenced by LinearEquation3< T >::Array3< U >::Array3(), LinearEquation3< T >::Array3< U >::operator *(), LinearEquation3< T >::Array3< U >::operator-=(), LinearEquation3< T >::Array3< U >::operator=(), LinearEquation3< T >::Array3< U >::operator[](), and LinearEquation3< T >::Array3< U >::subtractScaled().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:27:44 2009 for CMSSW by  doxygen 1.5.4