library: libTable #include "TDataSetIter.h" |
TDataSetIter(const TDataSetIter&) | |
TDataSetIter(TDataSet* l, Bool_t dir) | |
TDataSetIter(TDataSet* l = 0, Int_t depth = 1, Bool_t dir = kIterForward) | |
virtual | ~TDataSetIter() |
void | TObject::AbstractMethod(const char* method) const |
virtual TDataSet* | Add(TDataSet* set) |
virtual TDataSet* | Add(TDataSet* set, const Char_t* path) |
virtual TDataSet* | Add(TDataSet* set, TDataSet* dataset) |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
virtual TDataSet* | Cd(const Char_t* dirname) |
virtual TDataSet* | Cd(TDataSet* ds) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TObject::Clear(Option_t* = "") |
virtual TObject* | TObject::Clone(const char* newname = "") const |
virtual Int_t | TObject::Compare(const TObject* obj) const |
virtual void | TObject::Copy(TObject& object) const |
virtual TDataSet* | Cwd() const |
virtual void | TObject::Delete(Option_t* option = "") |
virtual Int_t | Df() const |
virtual TDataSet* | Dir(Char_t* dirname) |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
virtual Int_t | Du() const |
virtual void | TObject::Dump() const |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual TDataSet* | Find(const Char_t* path, TDataSet* rootset = 0, Bool_t mkdir = kFALSE, Bool_t titleFlag = kFALSE) |
virtual TDataSet* | FindByName(const Char_t* name, const Char_t* path = "", Option_t* opt = "") |
virtual TDataSet* | FindByPath(const Char_t* path, TDataSet* rootset = 0, Bool_t mkdir = kFALSE) |
virtual TDataSet* | FindByPointer(TDataSet* set, const Char_t* path = "0", Option_t* opt = "") |
virtual TDataSet* | FindByTitle(const Char_t* title, const Char_t* path = "", Option_t* opt = "") |
virtual TDataSet* | FindDataSet(const Char_t* name, const Char_t* path = "", Option_t* opt = "") |
virtual TDataSet* | FindDataSet(TDataSet* set, const Char_t* path, Option_t* opt = "") |
virtual TObject* | FindObject(const Char_t* name) const |
virtual TObject* | FindObject(const TObject* obj) const |
virtual Int_t | Flag(UInt_t flag = TDataSet::kMark, TDataSet::EBitOpt reset = TDataSet::kSet) |
virtual Int_t | Flag(const Char_t* path, UInt_t flag = TDataSet::kMark, TDataSet::EBitOpt reset = TDataSet::kSet) |
virtual Int_t | Flag(TDataSet* dataset, UInt_t flag = TDataSet::kMark, TDataSet::EBitOpt reset = TDataSet::kSet) |
virtual Int_t | GetDepth() const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TObject::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | GetOption() const |
virtual const char* | TObject::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TObject::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() const |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TObject::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual void | ls(Option_t* dirname = "") const |
virtual TDataSet* | Ls(const Char_t* dirname = "", Option_t* opt = "") const |
virtual TDataSet* | Ls(const Char_t* dirname, Int_t depth) const |
virtual TDataSet* | ls(TString dirname, Option_t* opt = "") const |
virtual TDataSet* | ls(const Char_t* dirname, Int_t depth) const |
void | TObject::MayNotUse(const char* method) const |
virtual TDataSet* | Md(const Char_t* dirname) |
virtual TDataSet* | Mkdir(const Char_t* dirname) |
virtual TDataSet* | Next(TDataSet::EDataSetPass mode = TDataSet::kContinue) |
virtual TDataSet* | Next(const Char_t* path, TDataSet* rootset = 0, Bool_t mkdir = kFALSE) |
virtual Bool_t | Notify() |
virtual void | Notify(TDataSet* dataset) |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::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) |
virtual TDataSet* | operator()(TDataSet::EDataSetPass mode = TDataSet::kContinue) |
virtual TDataSet* | operator()(const Char_t* path) |
virtual TDataSet* | operator*() const |
TDataSetIter& | operator=(const TDataSetIter&) |
virtual TDataSet* | operator[](const Char_t* path) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual TString | Path() |
virtual TString | Path(const Char_t* path) |
virtual void | TObject::Pop() |
virtual void | TObject::Print(Option_t* option = "") const |
virtual TDataSet* | Pwd(Option_t* opt = "") const |
virtual TDataSet* | Rd(const Char_t* dirname, Option_t* option = "") |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
virtual void | Reset(TDataSet* l = 0, Int_t depth = 0) |
void | TObject::ResetBit(UInt_t f) |
virtual TDataSet* | Rmdir(TDataSet* dataset, Option_t* option = "") |
virtual TDataSet* | Rmdir(const Char_t* dirname, Option_t* option = "") |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual TDataSet* | Shunt(TDataSet* set) |
virtual TDataSet* | Shunt(TDataSet* set, const Char_t* path) |
virtual TDataSet* | Shunt(TDataSet* set, TDataSet* dataset) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
TDataSet* | GetNullSet() |
void | TObject::MakeZombie() |
TDataSet* | NextDataSet(TIter& next) |
TDataSet* | NextDataSet(Int_t nDataSet) |
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TIter* | fNext | "standard" ROOT iterator for containers |
TIter* | fNextSet[100] | the list of the TList iterators to bypass the whole dataset |
Int_t | fDepth | the current depth of the passing |
Int_t | fMaxDepth | the max depth of the passing (=1 by default) |
TDataSet* | fDataSet | Pointer to the last selected TDataSet |
TDataSet* | fRootDataSet | Pointer to the root TDataSet |
TDataSet* | fWorkingDataSet | Pointer to the working TDataSet |
static TDataSet* | fgNullDataSet |
TDataSetIter TDataSetIter is a class iterator to navigate TDataSet objects via 4 internal pointers : 1. fRootDataSet - "root" dataset 2. fWorkingDataSet - Working dataset 3. fDataSet - the last selected TDataSet 4. fNext - TIter for the the list of the "root" dataset
Add - adds the set to the dataset defined with the second parameters TDataSet dataset != 0 - Add the set to the TDataSet *dataset = 0 - (by default) to the current TDataSet defined with fWorkingDataSet data member returns the pointer to set is success or ZERO poiner ======= Note: If this TDataSetIter is empty (i.e. Cwd() returns 0), the "set" becomes the "root" dataset of this iterator //
Add Char_t path != 0 - Add a TDataSet dataset to the TDataSet dataset defined with "path" = 0 - (by default) to the current TDataSet defined with fWorkingDataSet data member returns the dataset is success or ZERO pointer =======
TDataSet *TDataSetIter::Cd(const Char_t *dirname) Change the current working directory to dirname Returns the pointer to the new "working" TDataSet ======= 0, if the new directory doesn't exist. Remark: The name = ".." has a special meaning. ------ TDataSetIter::Cd("..") returns the parent set But one still can not use ".." as a legal part of the full path
TDataSet *TDataSetIter::Cd(const TDataSet *ds) Make: Cwd() = ds; Look for the first occurence of the "ds" pointer for the current TDataSet in respect of the Cwd() if any Change the current working directory to ds if present Returns the pointer to the new "working" TDataSet (i.e. ds) ======= 0, if the new directory doesn't exist.
Print the names of the TDataSet objects for the datatset named with "dirname" apart of TDataSet::Ls() this method prints one level only
FindDataSet looks for the object with the name supplied across dataset. name - the "base" name title (with no path) of the TDataSet (see: opt = -t) path - path to start the search from (the current dataset "by default") opt = "-i" - case insensitive search "-t" - first <name> parameter defines the object "title" rather the object "name" Note: If the name provided is not unique the first found is returned.
Check whether the object does belong the TDataSet defined with "path" opt = "-l" - check the "reference" links only "-s" - check the "structural" links only = "by default" - checks all links
This method is not recommended. It is done to back TObject::FindObject method only. One is recommnened to use FindByName method instead.
This method is not recommended. It is done to back TObject::FindObject method only. One is recommended to use FindByName method instead.
Check whether the object does belong the TDataSet defined with "path" opt = "-l" - check the "reference" links only "-s" - check the "structural" links only = "by default" - checks all links
Ls(const Char_t *dirname,Option_t) Prints the list of the TDataSet defined with dirname dirname = 0 - prints the current dataset dirname[0] = '/' - print TDataSet defined with dirname dirname[0] != '/' - prints DataSet with respect of the current class
Ls(const Char_t *dirname,Int_t depth) Prints the list of the TDataSet defined with dirname Returns the dataset defined by "path" or Cwd(); dirname = 0 - prints the current dataset dirname[0] = '/' - print TDataSet defined with dirname dirname[0] != '/' - prints DataSet with respect of the current class depth = 0 - print all level of the TDataSet defined with dirname > 0 - print depth levels at most of the dirname TDataSet
Notify(TDataSet *dataset) This dummy method is called when TDataSetIter::Find dives in "dataset" to look for thew next level of the dataset's printf("void TDataSetIter::Notify(TDataSet *) level: %d %s\n",fDepth,ds->GetName());
Remove the TDataSet *dataset from the current dataset If the current dataset is the deleted dataset the its parent becomes the "current dataset" or 0 if this dataset has no parent. returns: the "current dataset" pointer
returns the pointer the "next" TDataSet object = 0 if all objects have been returned. mode = kContinue - default normal mode kPrune - stop passing of the current branch but continue with the next one if any kUp - break passing, return to the previous level, then continue all other - are treated as "kContinue"
titleFlag = kFALSE; use object name as key (by default) kTRUE; use object title as key and ignore mkdirFlag "path" ::= <relative path> | <absolute path> | <empty> "relative path" ::= <dataset name> | <dataset name>/<dataset name> "absolute path" ::= /<relative path> "empty" ::= zero pointer | pointer to zero length string "relative path": the search is done against of fWorkingDataSet data mem "absolute path": the search is done against of fRootDataSet data mem "empty path" : no search is done just next TDataSet is returned if any Remark: This version can not treat any "special name" like "..", ".", etc ------
TDataSet *l != 0 means the new start pointer depth != 0 means the new value for the depth otherwise the privious one is used;
Shunt - moves the set to the dataset defined with the second parameters TDataSet dataset != 0 - Add the set to the TDataSet *dataset = 0 - (by default) to the current TDataSet defined with fWorkingDataSet data member returns the pointer to set if successful or ZERO pointer ======= Note: If this TDataSetIter is empty (i.e. Cwd() returns 0), the "set" becomes the "root" dataset of this iterator //
Shunt Char_t path != 0 - Move a TDataSet dataset from its parent to the TDataSet dataset defined with "path" = 0 - (by default) to the current TDataSet defined with fWorkingDataSet data member returns the dataset is success or ZERO pointer =======
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example) Input: path = The path to the dataset to find Output: pointer to the dataset if it found and its TDataSet::HasData() method returns non-zero (see for example TTable::HasData() )