Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TFoamVect Class Reference

Definition at line 18 of file TFoamVect.h.

Public Member Functions

 TFoamVect ()
 Default constructor for streamer. More...
 
 TFoamVect (Int_t)
 User constructor creating n-dimensional vector and allocating dynamically array of components. More...
 
 TFoamVect (const TFoamVect &)
 Copy constructor. More...
 
virtual ~TFoamVect ()
 Destructor. More...
 
Double_t GetCoord (Int_t i) const
 
Int_t GetDim () const
 
TFoamVectoperator*= (const Double_t &)
 unary multiplication operator *= More...
 
TFoamVect operator+ (const TFoamVect &)
 addition operator +; sum of 2 vectors: c=a+b, a=a+b, NEVER USE IT, VERY SLOW!!! More...
 
TFoamVectoperator+= (const TFoamVect &)
 unary addition operator +=; adding vector c*=x, More...
 
TFoamVect operator- (const TFoamVect &)
 subtraction operator -; difference of 2 vectors; c=a-b, a=a-b, NEVER USE IT, VERY SLOW!!! More...
 
TFoamVectoperator-= (const TFoamVect &)
 unary subtraction operator -= More...
 
TFoamVectoperator= (const TFoamVect &)
 substitution operator More...
 
TFoamVectoperator= (Double_t [])
 Loading in ordinary double prec. vector, sometimes can be useful. More...
 
TFoamVectoperator= (Double_t)
 Loading in double prec. number, sometimes can be useful. More...
 
Double_t & operator[] (Int_t)
 [] is for access to elements as in ordinary matrix like a[j]=bj Range protection is built in, consequently for substitution one should use rather use a=b than explicit loop! More...
 
void Print (Option_t *option) const
 Printout of all vector components on "std::cout". More...
 

Private Attributes

Double_t * fCoords
 
Int_t fDim
 

#include <TFoamVect.h>

Inheritance diagram for TFoamVect:
[legend]

Constructor & Destructor Documentation

◆ TFoamVect() [1/3]

TFoamVect::TFoamVect ( )

Default constructor for streamer.

Definition at line 21 of file TFoamVect.cxx.

◆ TFoamVect() [2/3]

TFoamVect::TFoamVect ( Int_t  n)

User constructor creating n-dimensional vector and allocating dynamically array of components.

Definition at line 31 of file TFoamVect.cxx.

◆ TFoamVect() [3/3]

TFoamVect::TFoamVect ( const TFoamVect Vect)

Copy constructor.

Definition at line 50 of file TFoamVect.cxx.

◆ ~TFoamVect()

TFoamVect::~TFoamVect ( )
virtual

Destructor.

Definition at line 69 of file TFoamVect.cxx.

Member Function Documentation

◆ GetCoord()

Double_t TFoamVect::GetCoord ( Int_t  i) const
inline

Definition at line 43 of file TFoamVect.h.

◆ GetDim()

Int_t TFoamVect::GetDim ( ) const
inline

Definition at line 42 of file TFoamVect.h.

◆ operator*=()

TFoamVect & TFoamVect::operator*= ( const Double_t &  x)

unary multiplication operator *=

Definition at line 118 of file TFoamVect.cxx.

◆ operator+()

TFoamVect TFoamVect::operator+ ( const TFoamVect p2)

addition operator +; sum of 2 vectors: c=a+b, a=a+b, NEVER USE IT, VERY SLOW!!!

Definition at line 155 of file TFoamVect.cxx.

◆ operator+=()

TFoamVect & TFoamVect::operator+= ( const TFoamVect Shift)

unary addition operator +=; adding vector c*=x,

Definition at line 128 of file TFoamVect.cxx.

◆ operator-()

TFoamVect TFoamVect::operator- ( const TFoamVect p2)

subtraction operator -; difference of 2 vectors; c=a-b, a=a-b, NEVER USE IT, VERY SLOW!!!

Definition at line 167 of file TFoamVect.cxx.

◆ operator-=()

TFoamVect & TFoamVect::operator-= ( const TFoamVect Shift)

unary subtraction operator -=

Definition at line 141 of file TFoamVect.cxx.

◆ operator=() [1/3]

TFoamVect & TFoamVect::operator= ( const TFoamVect Vect)

substitution operator

Definition at line 84 of file TFoamVect.cxx.

◆ operator=() [2/3]

TFoamVect & TFoamVect::operator= ( Double_t  Vect[])

Loading in ordinary double prec. vector, sometimes can be useful.

Definition at line 178 of file TFoamVect.cxx.

◆ operator=() [3/3]

TFoamVect & TFoamVect::operator= ( Double_t  x)

Loading in double prec. number, sometimes can be useful.

Definition at line 189 of file TFoamVect.cxx.

◆ operator[]()

Double_t & TFoamVect::operator[] ( Int_t  n)

[] is for access to elements as in ordinary matrix like a[j]=bj Range protection is built in, consequently for substitution one should use rather use a=b than explicit loop!

Definition at line 107 of file TFoamVect.cxx.

◆ Print()

void TFoamVect::Print ( Option_t *  option) const

Printout of all vector components on "std::cout".

Definition at line 204 of file TFoamVect.cxx.

Member Data Documentation

◆ fCoords

Double_t* TFoamVect::fCoords
private

Definition at line 22 of file TFoamVect.h.

◆ fDim

Int_t TFoamVect::fDim
private

Definition at line 21 of file TFoamVect.h.

Libraries for TFoamVect:
[legend]

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