(UNKNOWN PRODUCT) » UTILS » TMrbLofData

class TMrbLofData: public TNamed

__________________________________________________[C++IMPLEMENTATION]

 Name:           utils/src/TMrbLofData.cxx
 Purpose:        MARaBOU utilities: A structured data list
 Description:    Implements class methods to manage a list of data
 Keywords:
 Author:         R. Lutter
 Mailto:         <a href=mailto:rudi.lutter@physik.uni-muenchen.de>R. Lutter</a>
 Revision:       $Id: TMrbLofData.cxx,v 1.5 2004/11/16 13:30:27 rudi Exp $
 Date:

Function Members (Methods)

public:
TMrbLofData()
TMrbLofData(const TMrbLofData&)
TMrbLofData(const Char_t* Name, Int_t NofEntries, Int_t EntrySize)
virtual~TMrbLofData()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
Char_t*At(Int_t Index) const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* Option)
Bool_tClear(Int_t Index = -1)
Bool_tClear(Char_t* Address)
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
Bool_tFill(Int_t Index = -1, const Char_t Data = 0)
virtual voidTNamed::FillBuffer(char*& buffer)
Char_t*FindEmpty(Char_t* After = 0) const
Char_t*FindNonEmpty(Char_t* After = 0) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetEntrySize() const
virtual const char*TObject::GetIconName() const
Int_tGetIndex(Char_t* Addr) const
virtual const char*TNamed::GetName() const
Int_tGetNofEntries() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
voidHelp()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsEmpty(Char_t* Addr) const
virtual Bool_tIsEmpty(Int_t Index) const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Char_t*Next(Bool_t ClearFlag = kFALSE)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TMrbLofData&operator=(const TMrbLofData&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* Option) const
voidPrint(Char_t* Addr = 0, Bool_t NonEmpty = kFALSE) const
voidPrint(Int_t Index, Bool_t NonEmpty = kFALSE) const
voidPrint(ostream& Out, Char_t* Addr = 0, Bool_t NonEmpty = kFALSE) const
voidPrint(ostream& Out, Int_t Index, Bool_t NonEmpty = kFALSE) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
Bool_tReset(Bool_t ClearFlag = kFALSE)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tfCurIndexcurrent index
Char_t*fData! address of data
Int_tfEntrySizeentry size in bytes
TStringTNamed::fNameobject identifier
Int_tfNofEntriesnumber of entries
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMrbLofData(const Char_t* Name, Int_t NofEntries, Int_t EntrySize)
__________________________________________________________________[C++ CTOR]

 Name:           TMrbLofData
 Purpose:        Define a list of data
 Arguments:      Char_t * Name         -- name
                 Int_t NofEntries      -- number of entries
                 Int_t EntrySize       -- entry size in bytes
 Results:        --
 Exceptions:
 Description:    Class constructor
 Keywords:

Bool_t Reset(Bool_t ClearFlag = kFALSE)
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Reset
 Purpose:        Reset index and clear data
 Arguments:      Bool_t ClearFlag   -- clear data section if kTRUE
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Resets index to beginning. Clears all data if flag is set.
 Keywords:

Bool_t Clear(Int_t Index = -1)
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Clear
 Purpose:        Clear data
 Arguments:      Int_t Index     -- data index (-1 -> clear list)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Clears data. If Index = -1 data will be cleared completely.
 Keywords:

Bool_t Clear(Char_t* Address)
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Clear
 Purpose:        Clear data at given address
 Arguments:      Char_t * Addr     -- data address
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Clears data at given address.
 Keywords:

Bool_t Fill(Int_t Index = -1, const Char_t Data = 0)
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Fill
 Purpose:        Fill in data
 Arguments:      Int_t Index     -- data index (-1 -> fill list)
                 Char_t Data     -- data to be filled in
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Inserts data. If Index = -1 data will be filled completely.
 Keywords:

Char_t * At(Int_t Index) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::At
 Purpose:        Return pointer to entry
 Arguments:      Int_t Index        -- entry index
 Results:        Char_t * DataPtr   -- pointer to data entry
 Exceptions:     DataPtr = NULL on error
 Description:    Returns pointer to an entry given by its index.
 Keywords:

Char_t * Next(Bool_t ClearFlag = kFALSE)
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Next
 Purpose:        Return pointer to next entry
 Arguments:      Bool_t ClearFlag   -- clear data if kTRUE
 Results:        Char_t * DataPtr   -- pointer to data entry
 Exceptions:     DataPtr = NULL on end of list
 Description:    Increments internal data pointer by 1 entry.
 Keywords:

Char_t * FindEmpty(Char_t* After = 0) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::FindEmpty
 Purpose:        Return pointer to next empty slot
 Arguments:      Char_t * After     -- start after this entry
 Results:        Char_t * DataPtr   -- pointer to data entry
 Exceptions:     DataPtr = NULL on no empty slot found
 Description:    Searches for an empty slot.
 Keywords:

Char_t * FindNonEmpty(Char_t* After = 0) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::FindNonEmpty
 Purpose:        Return pointer to next active slot
 Arguments:      Char_t * After     -- start after this entry
 Results:        Char_t * DataPtr   -- pointer to data entry
 Exceptions:     DataPtr = NULL on no slot found
 Description:    Searches for an active slot.
 Keywords:

Bool_t IsEmpty(Char_t* Addr) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::IsEmpty
 Purpose:        Check if entry is empty
 Arguments:      Char_t * Addr      -- address of entry
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Checks if current entry is empty.
                 This method may be overwritten by a class inheriting
                 from TMrbLofData.
 Keywords:

Bool_t IsEmpty(Int_t Index) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::IsEmpty
 Purpose:        Check if entry is empty
 Arguments:      Int_t Index    -- entry index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Checks if current entry is empty.
                 This method may be overwritten by a class inheriting
                 from TMrbLofData.
 Keywords:

void Print(ostream& Out, Char_t* Addr = 0, Bool_t NonEmpty = kFALSE) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Print
 Purpose:        Print data
 Arguments:      ostream & Out      -- output stream
                 Char_t * Addr      -- address of entry
                 Bool_t NonEmpty    -- print non-empty entries only
 Results:        --
 Exceptions:
 Description:    Prints entry data. Assumes Int_t data.
                 This method may be overwritten by a class inheriting
                 from TMrbLofData.
 Keywords:

void Print(ostream& Out, Int_t Index, Bool_t NonEmpty = kFALSE) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::Print
 Purpose:        Print data
 Arguments:      ostream & Out      -- output stream
                 Int_t Index        -- entry index
                 Bool_t NonEmpty    -- print non-empty entries only
 Results:        --
 Exceptions:
 Description:    Prints entry data. Assumes Int_t data.
                 This method may be overwritten by a class inheriting
                 from TMrbLofData.
 Keywords:

Int_t GetIndex(Char_t* Addr) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbLofData::GetIndex
 Purpose:        Calculate entry index from address
 Arguments:      Char_t * Addr      -- address of entry
 Results:        Int_t Index        -- derived index
 Exceptions:     Index == -1 on error
 Description:    Checks if address is a valid entry address and calculates
                 entry index.
 Keywords:

TMrbLofData()
{}
TMrbLofData(const Char_t* Name, Int_t NofEntries, Int_t EntrySize)
~TMrbLofData()
{ if (fData) delete [] fData; }
void Clear(Option_t* Option)
{ TObject::Clear(Option); }
void Print(Option_t* Option) const
{ TObject::Print(Option); }
void Print(ostream& Out, Char_t* Addr = 0, Bool_t NonEmpty = kFALSE) const
void Print(ostream& Out, Int_t Index, Bool_t NonEmpty = kFALSE) const
Int_t GetNofEntries() const
{ return(fNofEntries); }
Int_t GetEntrySize() const
{ return(fEntrySize); }
void Help()
{ gSystem->Exec(Form("mrbHelp %s", this->ClassName())); }



Revision: $Id: TMrbLofData.h,v 1.6 2006/01/25 12:21:27 Rudolf.Lutter Exp $

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

This page has been automatically generated by use of ROOT's THtml class. If you have any comments or suggestions about the page layout send a mail to Marabou Support.