ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends | List of all members
TDataSet Class Reference

Definition at line 34 of file TDataSet.h.

Public Types

enum  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

Public Member Functions

 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 
 TDataSet (const TDataSet &src, EDataSetPass iopt=kAll)
 Creates TDataSet (clone) with a topology similar with TDataSet *pattern. More...
 
 TDataSet (TNode &src)
 This copy ctor has been depricated (left for thwe sake of the backweard compatibility) More...
 
virtual ~TDataSet ()
 std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl; More...
 
virtual void Add (TDataSet *dataset)
 
virtual void AddAt (TDataSet *dataset, Int_t idx=0)
 Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods. More...
 
virtual void AddAtAndExpand (TDataSet *dataset, Int_t idx=0)
 !!!! Under construction !!!!! Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods More...
 
virtual void AddFirst (TDataSet *dataset)
 Add TDataSet object at the beginning of the dataset list of this dataset. More...
 
virtual void AddLast (TDataSet *dataset)
 Add TDataSet object at the end of the dataset list of this dataset. More...
 
TDataSetAt (Int_t idx) const
 
virtual void Browse (TBrowser *b)
 Browse this dataset (called by TBrowser). More...
 
virtual TObjectClone (const char *newname="") const
 the custom implementation fo the TObject::Clone More...
 
virtual void Delete (Option_t *opt="")
 Delete - deletes the list of the TDataSet objects and all "Structural Members" as well This method doesn't affect the "Associated Members". More...
 
virtual TDataSetFind (const char *path) const
 Full description see: TDataSetIter::Find. More...
 
virtual TDataSetFindByName (const char *name, const char *path="", Option_t *opt="") const
 Full description see: TDataSetIter::Find. More...
 
virtual TDataSetFindByPath (const char *path) const
 Aliase for TDataSet::Find(const Char_t *path) method. More...
 
virtual TDataSetFindByTitle (const char *title, const char *path="", Option_t *opt="") const
 Full description see: TDataSetIter::Find. More...
 
TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
TObjectFindObject (const TObject *o) const
 Must be redefined in derived classes. More...
 
virtual TDataSetFirst () const
 Return the first object in the list. Returns 0 when list is empty. More...
 
TObjArrayGetObjArray () const
 
virtual TSeqCollectionGetCollection () const
 
TListGetList () const
 
virtual Int_t GetListSize () const
 
TObjectGetMother () const
 
virtual TObjectGetObject () const
 The depricated method (left here for the sake of the backward compatibility) More...
 
virtual TDataSetGetParent () const
 
virtual Long_t HasData () const
 
virtual TDataSetInstance () const
 apply the class default ctor to instantiate a new object of the same kind. More...
 
virtual TString Path () const
 return the full path of this data set More...
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *), Int_t depth=0)
 // Pass (callback,depth) // // Calls callback(this) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // // More...
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *, void *), void *user, Int_t depth=0)
 // Pass (callback,user,depth) // // Calls callback(this,user) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // // More...
 
virtual void PrintContents (Option_t *opt="") const
 Callback method to complete ls() method recursive loop This is to allow to sepoarate navigation and the custom invormation in the derived classes (see; TTable::PrintContents for example. More...
 
virtual Int_t Purge (Option_t *opt="")
 Purge - deletes all "dummy" "Structural Members" those are not ended up with some dataset with data inside (those return HasData() = 0) More...
 
virtual void Remove (TDataSet *set)
 Remiove the "set" from this TDataSet. More...
 
virtual TDataSetRemoveAt (Int_t idx)
 Remove object from the "idx" cell of this set and return the pointer to the removed object if any. More...
 
virtual void SetMother (TDataSet *parent=0)
 
virtual void SetObject (TObject *obj)
 The depricated method (left here for the sake of the backward compatibility) More...
 
virtual void SetParent (TDataSet *parent=0)
 Break the "parent" relationship with the current object parent if present parent != 0 Makes this object the "Structural Member" of the "parent" dataset = 0 Makes this object the "pure Associator", i.e it makes this object the "Structural Member" of NO other TDataSet. More...
 
virtual void SetWrite ()
 One should not use this method but TDataSet::Write instead This method os left here for the sake of the backward compatibility To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
virtual void Shunt (TDataSet *newParent=0)
 Remove the object from the original and add it to dataset TDataSet dataset != 0 - Make this object the "Structural Member" of "dataset" = 0 - Make this object "Orphan". More...
 
virtual void Sort ()
 Sort recursively all members of the TDataSet with TList::Sort method. More...
 
virtual Bool_t IsEmpty () const
 return kTRUE if the "internal" collection has no member More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsMarked () const
 
virtual Bool_t IsThisDir (const char *dirname, int len=-1, int ignorecase=0) const
 Compare the name of the TDataSet with "dirname" ignorercase flags indicates whether the comparision is case sensitive. More...
 
virtual TDataSetLast () const
 Return the last object in the list. Returns 0 when list is empty. More...
 
virtual void ls (Option_t *option="") const
 // ls(Option_t <em>option) // // option - defines the path to be listed // = "</em>" - means print all levels // // More...
 
virtual void ls (Int_t depth) const
 // ls(Int_t depth) // // Prints the list of the this TDataSet. More...
 
void Mark ()
 
void UnMark ()
 
void MarkAll ()
 Mark all members of this dataset. More...
 
void UnMarkAll ()
 UnMark all members of this dataset. More...
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset. More...
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
virtual TDataSetNext () const
 Return the object next to this one in the parent structure This convinient but time-consuming. More...
 
virtual TDataSetPrev () const
 Return the object that is previous to this one in the parent structure This convinient but time-consuming. More...
 
virtual void Update ()
 Update() More...
 
virtual void Update (TDataSet *set, UInt_t opt=0)
 Update this TDataSet with "set". More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 

Static Public Member Functions

static TDataSetGetMainSet ()
 return pointer to the main dataset More...
 
static TDataSetinstance ()
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Member Functions

virtual void SetMother (TObject *mother)
 
 TDataSet (const char *name, const char *title)
 
void AddMain (TDataSet *set)
 add data set to main data set More...
 
TDataSetGetRealParent ()
 return real parent More...
 
void MakeCollection ()
 Create the internal container at once if any. More...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Static Protected Member Functions

static EDataSetPass SortIt (TDataSet *ds)
 
static EDataSetPass SortIt (TDataSet *ds, void *user)
 

Protected Attributes

TDataSetfParent
 
TSeqCollectionfList
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Static Protected Attributes

static TDataSetfgMainSet = &mainSet
 

Private Member Functions

void operator= (const TDataSet &)
 

Friends

class TDataSetIter
 

#include <TDataSet.h>

Inheritance diagram for TDataSet:
[legend]

Member Enumeration Documentation

Enumerator
kSet 
kReset 

Definition at line 79 of file TDataSet.h.

Enumerator
kContinue 
kPrune 
kStop 
kUp 
kStruct 
kAll 
kRefs 
kMarked 

Definition at line 40 of file TDataSet.h.

Enumerator
kMark 
kArray 

Definition at line 74 of file TDataSet.h.

Constructor & Destructor Documentation

TDataSet::TDataSet ( const char *  name,
const char *  title 
)
inlineprotected

Definition at line 62 of file TDataSet.h.

Referenced by Clone(), TDataSetIter::Find(), and instance().

TDataSet::TDataSet ( const char *  name = "",
TDataSet parent = 0,
Bool_t  arrayFlag = kFALSE 
)
TDataSet::TDataSet ( const TDataSet pattern,
EDataSetPass  iopt = kAll 
)

Creates TDataSet (clone) with a topology similar with TDataSet *pattern.

Parameters:

pattern - the pattern dataset iopt = kStruct - clone only my structural links kAll - clone all links kRefs - clone only refs kMarked - clone marked (not implemented yet) only

All new-created sets become the structural ones anyway.

std::cout << "ctor for " << GetName() << " - " << GetTitle() << std::endl;

Definition at line 188 of file TDataSet.cxx.

TDataSet::TDataSet ( TNode src)

This copy ctor has been depricated (left for thwe sake of the backweard compatibility)

Definition at line 206 of file TDataSet.cxx.

TDataSet::~TDataSet ( )
virtual

std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl;

Definition at line 213 of file TDataSet.cxx.

Member Function Documentation

void TDataSet::Add ( TDataSet dataset)
inlinevirtual
void TDataSet::AddAt ( TDataSet dataset,
Int_t  idx = 0 
)
virtual

Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods.

Reimplemented in TTable, TTableDescriptor, and TChair.

Definition at line 235 of file TDataSet.cxx.

Referenced by TChair::AddAt(), and TTable::AddAt().

void TDataSet::AddAtAndExpand ( TDataSet dataset,
Int_t  idx = 0 
)
virtual

!!!! Under construction !!!!! Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods

Definition at line 254 of file TDataSet.cxx.

Referenced by TTableDescriptor::AddAt().

void TDataSet::AddFirst ( TDataSet dataset)
virtual

Add TDataSet object at the beginning of the dataset list of this dataset.

Definition at line 283 of file TDataSet.cxx.

Referenced by AddMain().

void TDataSet::AddLast ( TDataSet dataset)
virtual

Add TDataSet object at the end of the dataset list of this dataset.

Definition at line 269 of file TDataSet.cxx.

Referenced by Add().

void TDataSet::AddMain ( TDataSet set)
protected

add data set to main data set

Definition at line 412 of file TDataSet.cxx.

TDataSet * TDataSet::At ( Int_t  idx) const
inline

Definition at line 151 of file TDataSet.h.

void TDataSet::Browse ( TBrowser b)
virtual

Browse this dataset (called by TBrowser).

Reimplemented from TObject.

Reimplemented in TTable, TVolume, TChair, TVolumeView, TObjectSet, and TColumnView.

Definition at line 297 of file TDataSet.cxx.

Referenced by TObjectSet::Browse(), and TTable::Browse().

TObject * TDataSet::Clone ( const char *  newname = "") const
virtual

the custom implementation fo the TObject::Clone

Reimplemented from TNamed.

Definition at line 308 of file TDataSet.cxx.

Referenced by TDataSet().

void TDataSet::Delete ( Option_t opt = "")
virtual

Delete - deletes the list of the TDataSet objects and all "Structural Members" as well This method doesn't affect the "Associated Members".

Reimplemented from TObject.

Reimplemented in TTable, and TObjectSet.

Definition at line 320 of file TDataSet.cxx.

Referenced by TObjectSet::Delete(), TTable::Delete(), and ~TDataSet().

TDataSet * TDataSet::Find ( const char *  path) const
virtual

Full description see: TDataSetIter::Find.

Note. This method is quite expansive. --— It is done to simplify the user's code when one wants to find ONLY object. If you need to find more then 1 object in this dataset, regard using TDataSetIter class yourself.

Definition at line 362 of file TDataSet.cxx.

Referenced by FindByPath(), TVolumeView::Local2Master(), TDataSetIter::Ls(), and TVolumeView::TVolumeView().

TDataSet * TDataSet::FindByName ( const char *  name,
const char *  path = "",
Option_t opt = "" 
) const
virtual

Full description see: TDataSetIter::Find.

Note. This is method is quite expansive. --— It is done to simplify the user's code when one wants to find ONLY object. If you need to find more then 1 object in this dataset, regard using TDataSetIter class yourself.

Definition at line 378 of file TDataSet.cxx.

Referenced by FindObject(), and TTableDescriptor::MakeCommentField().

TDataSet * TDataSet::FindByPath ( const char *  path) const
virtual

Aliase for TDataSet::Find(const Char_t *path) method.

Definition at line 347 of file TDataSet.cxx.

TDataSet * TDataSet::FindByTitle ( const char *  title,
const char *  path = "",
Option_t opt = "" 
) const
virtual

Full description see: TDataSetIter::Find.

Note. This method is quite expansive. --— It is done to simplify the user's code when one wants to find ONLY object. If you need to find more then 1 object in this dataset, regard using TDataSetIter class yourself.

Definition at line 394 of file TDataSet.cxx.

TObject* TDataSet::FindObject ( const char *  name) const
inlinevirtual

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented from TObject.

Definition at line 101 of file TDataSet.h.

Referenced by TVolume::Add().

TObject* TDataSet::FindObject ( const TObject obj) const
inlinevirtual

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented from TObject.

Definition at line 102 of file TDataSet.h.

TDataSet * TDataSet::First ( ) const
virtual

Return the first object in the list. Returns 0 when list is empty.

Definition at line 403 of file TDataSet.cxx.

Referenced by IsEmpty().

virtual TSeqCollection* TDataSet::GetCollection ( ) const
inlinevirtual
TList* TDataSet::GetList ( ) const
inline

Definition at line 106 of file TDataSet.h.

Referenced by TVolumeView::Nodes(), TVolume::Nodes(), and Sort().

Int_t TDataSet::GetListSize ( ) const
inlinevirtual

Definition at line 152 of file TDataSet.h.

Referenced by Purge().

TDataSet * TDataSet::GetMainSet ( )
static

return pointer to the main dataset

Definition at line 420 of file TDataSet.cxx.

TObject* TDataSet::GetMother ( ) const
inline

Definition at line 109 of file TDataSet.h.

TObjArray* TDataSet::GetObjArray ( ) const
inline

Definition at line 104 of file TDataSet.h.

TObject * TDataSet::GetObject ( ) const
virtual

The depricated method (left here for the sake of the backward compatibility)

Reimplemented in TObjectSet.

Definition at line 428 of file TDataSet.cxx.

virtual TDataSet* TDataSet::GetParent ( ) const
inlinevirtual
TDataSet * TDataSet::GetRealParent ( )
protected

return real parent

Definition at line 166 of file TDataSet.cxx.

Referenced by AddAt(), AddAtAndExpand(), AddFirst(), and AddLast().

virtual Long_t TDataSet::HasData ( ) const
inlinevirtual

Reimplemented in TTable, TChair, TObjectSet, and TFileSet.

Definition at line 112 of file TDataSet.h.

Referenced by TDataSetIter::operator[](), Purge(), and TTable::Update().

TDataSet * TDataSet::Instance ( ) const
virtual

apply the class default ctor to instantiate a new object of the same kind.

This is a base method to be overriden by the classes derived from TDataSet (to support TDataSetIter::Mkdir for example)

Reimplemented in TObjectSet.

Definition at line 546 of file TDataSet.cxx.

Referenced by TDataSetIter::Find().

TDataSet * TDataSet::instance ( )
inlinestatic

Definition at line 153 of file TDataSet.h.

Referenced by Instance().

void TDataSet::InvertAllMarks ( )

Invert mark bit for all members of this dataset.

Definition at line 593 of file TDataSet.cxx.

Bool_t TDataSet::IsEmpty ( ) const
virtual

return kTRUE if the "internal" collection has no member

Reimplemented in TFileSet.

Definition at line 608 of file TDataSet.cxx.

virtual Bool_t TDataSet::IsFolder ( ) const
inlinevirtual

Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).

Reimplemented from TObject.

Reimplemented in TTable, TChair, TFileSet, and TColumnView.

Definition at line 129 of file TDataSet.h.

Referenced by TDataSetIter::Du().

Bool_t TDataSet::IsMarked ( ) const
inlinevirtual

Reimplemented in TVolume, and TVolumeView.

Definition at line 154 of file TDataSet.h.

Referenced by InvertAllMarks().

Bool_t TDataSet::IsThisDir ( const char *  dirname,
int  len = -1,
int  ignorecase = 0 
) const
virtual

Compare the name of the TDataSet with "dirname" ignorercase flags indicates whether the comparision is case sensitive.

Definition at line 555 of file TDataSet.cxx.

Referenced by Update().

TDataSet * TDataSet::Last ( ) const
virtual

Return the last object in the list. Returns 0 when list is empty.

Definition at line 437 of file TDataSet.cxx.

void TDataSet::ls ( Option_t option = "") const
virtual

// ls(Option_t <em>option) // // option - defines the path to be listed // = "</em>" - means print all levels // //

Reimplemented from TNamed.

Reimplemented in TChair.

Definition at line 495 of file TDataSet.cxx.

Referenced by TDataSetIter::Dir(), TChair::ls(), TDataSetIter::Ls(), ls(), and TDataSetIter::Pwd().

void TDataSet::ls ( Int_t  depth) const
virtual

// ls(Int_t depth) // // Prints the list of the this TDataSet.

// // Parameter: // ========= // Int_t depth >0 the number of levels to be printed // =0 all levels will be printed // No par - ls() prints only level out // //

Reimplemented in TChair.

Definition at line 526 of file TDataSet.cxx.

void TDataSet::MakeCollection ( )
protected

Create the internal container at once if any.

Definition at line 221 of file TDataSet.cxx.

Referenced by AddAt(), AddAtAndExpand(), AddFirst(), and AddLast().

void TDataSet::Mark ( )
inline

Definition at line 156 of file TDataSet.h.

Referenced by InvertAllMarks(), MarkAll(), TVolumeView::TVolumeView(), UnMark(), and UnMarkAll().

void TDataSet::Mark ( UInt_t  flag,
EBitOpt  reset = kSet 
)
inline

Definition at line 155 of file TDataSet.h.

void TDataSet::MarkAll ( )

Mark all members of this dataset.

Definition at line 571 of file TDataSet.cxx.

TDataSet * TDataSet::Next ( ) const
virtual

Return the object next to this one in the parent structure This convinient but time-consuming.

Don't use it in the inner loops

Definition at line 447 of file TDataSet.cxx.

void TDataSet::operator= ( const TDataSet )
inlineprivate

Definition at line 52 of file TDataSet.h.

TDataSet::EDataSetPass TDataSet::Pass ( EDataSetPass(*)(TDataSet *)  callback,
Int_t  depth = 0 
)
virtual

// Pass (callback,depth) // // Calls callback(this) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // //

Definition at line 689 of file TDataSet.cxx.

Referenced by Pass().

TDataSet::EDataSetPass TDataSet::Pass ( EDataSetPass(*)(TDataSet *, void *)  callback,
void user,
Int_t  depth = 0 
)
virtual

// Pass (callback,user,depth) // // Calls callback(this,user) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // //

Definition at line 730 of file TDataSet.cxx.

TString TDataSet::Path ( ) const
virtual

return the full path of this data set

Definition at line 626 of file TDataSet.cxx.

Referenced by TDataSetIter::Du(), TDataSetIter::Path(), Path(), PrintContents(), TTable::PrintHeader(), TVolumeView::SavePrimitive(), and TTable::SavePrimitive().

TDataSet * TDataSet::Prev ( ) const
virtual

Return the object that is previous to this one in the parent structure This convinient but time-consuming.

Don't use it in the inner loops

Definition at line 464 of file TDataSet.cxx.

void TDataSet::PrintContents ( Option_t opt = "") const
virtual

Callback method to complete ls() method recursive loop This is to allow to sepoarate navigation and the custom invormation in the derived classes (see; TTable::PrintContents for example.

Reimplemented in TTable.

Definition at line 618 of file TDataSet.cxx.

Referenced by ls(), and TTable::PrintContents().

Int_t TDataSet::Purge ( Option_t opt = "")
virtual

Purge - deletes all "dummy" "Structural Members" those are not ended up with some dataset with data inside (those return HasData() = 0)

Purge does affect only the "Structural Members" and doesn't "Associated" ones

Reimplemented in TTable, and TChair.

Definition at line 758 of file TDataSet.cxx.

Referenced by Purge(), and TTable::Purge().

void TDataSet::Remove ( TDataSet set)
virtual

Remiove the "set" from this TDataSet.

Definition at line 641 of file TDataSet.cxx.

Referenced by TVolume::DeletePosition(), and Shunt().

TDataSet * TDataSet::RemoveAt ( Int_t  idx)
virtual

Remove object from the "idx" cell of this set and return the pointer to the removed object if any.

Definition at line 656 of file TDataSet.cxx.

virtual void TDataSet::SetMother ( TObject mother)
inlineprotectedvirtual

Definition at line 61 of file TDataSet.h.

virtual void TDataSet::SetMother ( TDataSet parent = 0)
inlinevirtual

Definition at line 122 of file TDataSet.h.

void TDataSet::SetObject ( TObject obj)
virtual

The depricated method (left here for the sake of the backward compatibility)

Reimplemented in TObjectSet.

Definition at line 480 of file TDataSet.cxx.

void TDataSet::SetParent ( TDataSet parent = 0)
virtual

Break the "parent" relationship with the current object parent if present parent != 0 Makes this object the "Structural Member" of the "parent" dataset = 0 Makes this object the "pure Associator", i.e it makes this object the "Structural Member" of NO other TDataSet.

Definition at line 784 of file TDataSet.cxx.

Referenced by AddAt(), AddAtAndExpand(), AddFirst(), AddLast(), Remove(), RemoveAt(), and SetMother().

void TDataSet::SetWrite ( )
virtual

One should not use this method but TDataSet::Write instead This method os left here for the sake of the backward compatibility To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too.

Definition at line 797 of file TDataSet.cxx.

void TDataSet::Shunt ( TDataSet newParent = 0)
virtual

Remove the object from the original and add it to dataset TDataSet dataset != 0 - Make this object the "Structural Member" of "dataset" = 0 - Make this object "Orphan".

Definition at line 810 of file TDataSet.cxx.

Referenced by TDataSetIter::Shunt(), Update(), and ~TDataSet().

void TDataSet::Sort ( )
virtual

Sort recursively all members of the TDataSet with TList::Sort method.

Definition at line 874 of file TDataSet.cxx.

Referenced by Sort().

static EDataSetPass TDataSet::SortIt ( TDataSet ds)
staticprotected
static EDataSetPass TDataSet::SortIt ( TDataSet ds,
void user 
)
staticprotected
void TDataSet::UnMark ( )
inline

Definition at line 157 of file TDataSet.h.

void TDataSet::UnMarkAll ( )

UnMark all members of this dataset.

Definition at line 582 of file TDataSet.cxx.

void TDataSet::Update ( )
virtual

Update()

Recursively updates all tables for all nested datasets in inverse order

Reimplemented in TTable, and TChair.

Definition at line 864 of file TDataSet.cxx.

Referenced by Update(), and TTable::Update().

void TDataSet::Update ( TDataSet set,
UInt_t  opt = 0 
)
virtual

Update this TDataSet with "set".

ATTENTION !!!

This method changes the parent relationships of the input "set"

Reimplemented in TTable, and TChair.

Definition at line 825 of file TDataSet.cxx.

Int_t TDataSet::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
)
virtual

To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too.

Reimplemented from TObject.

Definition at line 893 of file TDataSet.cxx.

Referenced by SetWrite().

Int_t TDataSet::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
) const
virtual

To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too.

Reimplemented from TObject.

Definition at line 909 of file TDataSet.cxx.

Friends And Related Function Documentation

friend class TDataSetIter
friend

Definition at line 36 of file TDataSet.h.

Member Data Documentation

TDataSet * TDataSet::fgMainSet = &mainSet
staticprotected

Definition at line 57 of file TDataSet.h.

Referenced by AddMain(), GetMainSet(), and GetRealParent().

TSeqCollection* TDataSet::fList
protected
TDataSet* TDataSet::fParent
protected

Definition at line 58 of file TDataSet.h.

Referenced by GetParent(), SetParent(), Shunt(), and Write().

Collaboration diagram for TDataSet:
[legend]

The documentation for this class was generated from the following files: