library: libFoam #include "TFoamVect.h"

# TFoamVect

class description - 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): TObject(Vect)

     Copy constructor

~TFoamVect()

     Destructor

void Print(Option_t *option) const

     Printout of all vector components on "cout"

void PrintList(void)

     Printout of all member vectors in the list starting from "this"

### Inline Functions

             TFoamVect& operator=(const TFoamVect&)
              Double_t& operator[](Int_t)
             TFoamVect& operator=(Double_t*)
             TFoamVect& operator=(Double_t)
             TFoamVect& operator+=(const TFoamVect&)
             TFoamVect& operator-=(const TFoamVect&)
             TFoamVect& operator*=(const Double_t&)
              TFoamVect operator+(const TFoamVect&)
              TFoamVect operator-(const TFoamVect&)
                  Int_t GetDim() const
               Double_t GetCoord(Int_t i) const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Author: S. Jadach, P.Sawicki
Last update: root/foam:$Name: $:$Id: TFoamVect.cxx,v 1.7 2005/04/13 13:15:27 brun Exp $