Changeset 651 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 02/23/01 16:49:26 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r609 r651 23 23 ClassImp(MParList) 24 24 25 MParList::MParList() : fNext(NULL)25 MParList::MParList() 26 26 { 27 27 // … … 102 102 } 103 103 104 TObject*MParList::FindObject(const char *name) const104 MParContainer *MParList::FindObject(const char *name) const 105 105 { 106 106 // … … 108 108 // 'name' is the name of the object you are searching for. 109 109 // 110 return ( TObject*)fContainer.FindObject(name);110 return (MParContainer*)fContainer.FindObject(name); 111 111 } 112 112 -
trunk/MagicSoft/Mars/mbase/MParList.h
r609 r651 26 26 { 27 27 private: 28 TIter *fNext; //!29 28 TOrdCollection fContainer; // Collection of Parameter and Data Containers 30 29 … … 35 34 ~MParList() 36 35 { 37 if (fNext)38 delete fNext;39 36 } 40 37 … … 43 40 void SetLogStream(MLog *log); 44 41 45 TObject *FindObject(const char *name) const; 46 47 void Reset() 48 { 49 fNext = new TIter(&fContainer); 50 } 51 52 MParContainer *Next() 53 { 54 return (MParContainer*)(*fNext)(); 55 } 42 MParContainer *FindObject(const char *name) const; 56 43 57 44 void Print(Option_t *t = NULL);
Note:
See TracChangeset
for help on using the changeset viewer.