X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=RALICE%2FAliObjMatrix.h;h=412898d1d8c5f9eadf8da22bdb38c2006c5ca7b2;hp=581d84e20b9793a1e1ee99a3322f066b8f1849b8;hb=ea0b5b7fa605d46132220093598845caf0dea5db;hpb=d0a8ef71aaa0448953247bb6341ab4e23cef0079 diff --git a/RALICE/AliObjMatrix.h b/RALICE/AliObjMatrix.h index 581d84e20b9..412898d1d8c 100644 --- a/RALICE/AliObjMatrix.h +++ b/RALICE/AliObjMatrix.h @@ -5,34 +5,33 @@ // $Id$ -#include "TObject.h" +#include "TNamed.h" #include "TObjArray.h" -#include "TRefArray.h" #include "TArrayI.h" -class AliObjMatrix : public TObject +class AliObjMatrix : public TNamed { public: - AliObjMatrix(); // Default constructor - virtual ~AliObjMatrix(); // Default destructor - virtual void Reset(); // Reset the whole matrix structure - virtual void SetOwner(Int_t own=1); // Set the owner flag for the stored objects - virtual Int_t GetOwner(); // Provide the owner flag for the stored objects - virtual void SetSwapMode(Int_t swap=1); // Set the swap mode flag for this matrix - virtual Int_t GetSwapMode(); // Provide the swap mode flag for this matrix - virtual void EnterObject(Int_t row,Int_t col,TObject* obj); // Enter an object into the matrix - void RemoveObject(Int_t row,Int_t col); // Remove object at (row,col) from the matrix - void RemoveObjects(TObject* obj,Int_t row=0,Int_t col=0); // Remove specified object(s) from the matrix - virtual TObject* GetObject(Int_t row,Int_t col); // Provide an object from the matrix - virtual Int_t GetMaxRow(); // Provide the maximum row number index - virtual Int_t GetMaxColumn(); // Provide the maximum column number index - virtual Int_t GetNobjects(); // Provide the number of stored objects - virtual TObject* GetObject(Int_t j); // Provide pointer to the j-th object - virtual TObjArray* GetObjects(); // Provide pointers of all stored onjects - Int_t GetNrefs(TObject* obj); // Provide # of stored references to this object - Int_t GetIndices(TObject* obj,TArrayI& rows,TArrayI& cols); // Provide all (row,col) indices of this object - Int_t GetIndices(TObject* obj,Int_t row,TArrayI& cols); // Provide column indices in a specific row - Int_t GetIndices(TObject* obj,TArrayI& rows,Int_t col); // Provide row indices in a specific column + AliObjMatrix(); // Default constructor + virtual ~AliObjMatrix(); // Default destructor + virtual void Reset(); // Reset the whole matrix structure + virtual void SetOwner(Int_t own=1); // Set the owner flag for the stored objects + virtual Int_t GetOwner() const; // Provide the owner flag for the stored objects + virtual void SetSwapMode(Int_t swap=1); // Set the swap mode flag for this matrix + virtual Int_t GetSwapMode() const; // Provide the swap mode flag for this matrix + virtual void EnterObject(Int_t row,Int_t col,TObject* obj); // Enter an object into the matrix + void RemoveObject(Int_t row,Int_t col); // Remove object at (row,col) from the matrix + void RemoveObjects(TObject* obj,Int_t row=0,Int_t col=0); // Remove specified object(s) from the matrix + virtual TObject* GetObject(Int_t row,Int_t col) const; // Provide an object from the matrix + virtual Int_t GetMaxRow() const; // Provide the maximum row number index + virtual Int_t GetMaxColumn() const; // Provide the maximum column number index + virtual Int_t GetNobjects() const; // Provide the number of stored objects + virtual TObject* GetObject(Int_t j) const; // Provide pointer to the j-th object + virtual TObjArray* GetObjects(); // Provide pointers of all stored onjects + Int_t GetNrefs(TObject* obj) const; // Number of stored references to this object + Int_t GetIndices(TObject* obj,TArrayI& rows,TArrayI& cols) const; // All (row,col) indices of this object + Int_t GetIndices(TObject* obj,Int_t row,TArrayI& cols) const; // Column indices in a specific row + Int_t GetIndices(TObject* obj,TArrayI& rows,Int_t col) const; // Row indices in a specific column protected: TObjArray* fRows; // Pointers to the various arrays representing the matrix rows @@ -42,6 +41,6 @@ class AliObjMatrix : public TObject Int_t fMaxcol; // The maximum column number index TObjArray* fObjects; // Linear reference array for fast looping over the stored objects - ClassDef(AliObjMatrix,4) // Handling of a matrix structure of objects. + ClassDef(AliObjMatrix,6) // Handling of a matrix structure of objects. }; #endif