library: libFoam
#include "TFoamVect.h"

TFoamVect


class description - header file - source file - inheritance tree (.pdf)

class TFoamVect : public TObject

Inheritance Chart:
TObject
<-
TFoamVect

    public:
TFoamVect() TFoamVect(Int_t) TFoamVect(const TFoamVect&) TFoamVect operator+(const TFoamVect&) TFoamVect operator-(const TFoamVect&) virtual ~TFoamVect() static TClass* Class() Double_t GetCoord(Int_t i) const Int_t GetDim() const virtual TClass* IsA() const TFoamVect& operator*=(const Double_t&) TFoamVect& operator+=(const TFoamVect&) TFoamVect& operator-=(const TFoamVect&) TFoamVect& operator=(const TFoamVect&) TFoamVect& operator=(Double_t*) TFoamVect& operator=(Double_t) Double_t& operator[](Int_t) virtual void Print(Option_t* option) const void PrintList() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t fDim Dimension Double_t* fCoords [fDim] Coordinates TFoamVect* fNext pointer for tree construction TFoamVect* fPrev pointer for tree construction

Class Description

_____________________________________________________________________________
                                                                            
 Auxiliary class TFoamVect of n-dimensional vector, with dynamic allocation 
 used for the cartesian geometry of the TFoam  cells                        
                                                                            
_____________________________________________________________________________
TFoamVect()
 Default constructor for streamer
TFoamVect(Int_t n)
 User constructor creating n-dimensional vector
 and allocating dynamically array of components
TFoamVect(const TFoamVect &Vect)
 Copy constructor
~TFoamVect()
 Destructor
Double_t & operator[](Int_t n)
 [] is for access to elements as in ordinary matrix like a[j]=b[j]
 (Perhaps against some strict rules but rather practical.)
 Range protection is built in, consequently for substitution
 one should use rather use a=b than explicit loop!
TFoamVect& operator*=(const Double_t &x)
 unary multiplication operator *=
TFoamVect& operator+=(const TFoamVect& Shift)
 unary addition operator +=; adding vector c*=x,
TFoamVect& operator-=(const TFoamVect& Shift)
 unary subtraction operator -=
TFoamVect operator+(const TFoamVect &p2)
 addition operator +; sum of 2 vectors: c=a+b, a=a+b,
 NEVER USE IT, VERY SLOW!!!
TFoamVect operator-(const TFoamVect &p2)
 subtraction operator -; difference of 2 vectors; c=a-b, a=a-b,
 NEVER USE IT, VERY SLOW!!!
void Print(Option_t *option)
 Printout of all vector components on "cout"
void PrintList(void)
 Printout of all member vectors in the list starting from "this"
Int_t GetDim()
Double_t GetCoord(Int_t i)

Author: S. Jadach, P.Sawicki
Last update: root/foam:$Name: $:$Id: TFoamVect.cxx,v 1.12 2006/05/26 15:13:01 rdm Exp $


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.