BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDataTable


class description - source file - inheritance tree

class BrDataTable : public BrDataObject


    public:
BrDataTable BrDataTable() BrDataTable BrDataTable(const Char_t* Name, const Char_t* Title = "NULL") BrDataTable BrDataTable(BrDataTable&) virtual void ~BrDataTable() virtual void Add(TObject* object) virtual void AddAt(TObject* object, Int_t idx) BrDataTable* At(Int_t i) const virtual void Browse(TBrowser* b) static TClass* Class() void Clear() void Compress() void Delete() void DeleteAndCompress(TObject* obj) void DeleteAndCompressAt(Int_t i) void DeleteObject(TObject* obj) void DeleteObjectAt(Int_t i) Int_t Entries() Int_t GetEntries() const virtual TObjArray* GetObjectList() virtual TClass* IsA() const virtual Bool_t IsFolder() const virtual Bool_t IsTable() const BrDataTable& operator+=(const BrDataTable&) virtual void Print(Option_t* option = "R") const void Remove(TObject* obj) void RemoveAt(Int_t i) virtual void SetOwner(Bool_t e = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) void Sort(Int_t upto) void Sort() virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TObjArray* fObjectList List of objects stored in container

Class Description

 BrDataTable is a BRAHMS data object that has a list of
 data objects.  It is meant to be used in grouping like kinds
 of information together.  The list is fObjectList which is a
 TObjArray.  Several methods manage the fObjectList with the same
 names as TObjArray

________________________________________________________________

BrDataTable()
 Defaults constructor. Does nothing.
 Don't use this constructor unless you have to and know
 what you are doing
 Use BrDataTable(Char_t *name) instead.

BrDataTable(const Char_t *Name, const Char_t *Title) : BrDataObject(Name, Title)
 Constructor. Create the data container setting the name
 (and title, if supplied)

~BrDataTable()
 Destructor. Delete BrDataTable and all the data objects
 currently owned by BrDataTable

Add(TObject *object)
 Add an object to the object list.  Essentially uses
 TObjArray::Add(object);

AddAt(TObject *object,Int_t idx)
 Add an object to the object list at a specific index.
 Essentially  uses TObjArray::AddAt(object,idx);

DeleteAndCompress(TObject *obj)
 Removes an object from the Object List.  Object is then deleted.
 Then the object list is compressed

DeleteAndCompressAt(Int_t i)
 Removes an object an object at specified index from the Object List.
 Essentially uses TObjArray::RemoveAt(i);
 After object is removed, it is deleted.
 Then the object list is compressed

DeleteObject(TObject *obj)
 Removes an object from the Object List.  Object is then deleted.

DeleteObjectAt(Int_t i)
 Removes an object an object at specified index from the Object List.
 Essentially uses TObjArray::RemoveAt(i);
 After object is removed, it is deleted.

Browse(TBrowser* b)

Print(Option_t* option) const
 Print all contained objects, passing the option along.
 Options:
    R         Recursive print [Default]
 See also BrDataObject::Print



Inline Functions


          TObjArray* GetObjectList()
               Int_t Entries()
               Int_t GetEntries() const
        BrDataTable* At(Int_t i) const
              Bool_t IsTable() const
                void Sort(Int_t upto)
                void Sort()
                void Clear()
                void Delete()
                void Remove(TObject* obj)
                void RemoveAt(Int_t i)
                void Compress()
                void SetOwner(Bool_t e = kTRUE)
              Bool_t IsFolder() const
        BrDataTable& operator+=(const BrDataTable&)
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
         BrDataTable BrDataTable(BrDataTable&)

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2001/06/21 14:54:58 $ by hagel $

Validate HTML
Validate CSS