Changeset 959 for trunk/MagicSoft/Mars/mbase/MTaskList.cc
- Timestamp:
- 10/02/01 14:46:56 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r887 r959 80 80 // -------------------------------------------------------------------------- 81 81 // 82 // If the 'IsOwner' bit is set (via SetOwner()) all tasks are deleted 83 // by the destructor 84 // 85 MTaskList::~MTaskList() 86 { 87 if (TestBit(kIsOwner)) 88 fTasks.SetOwner(); 89 } 90 91 // -------------------------------------------------------------------------- 92 // 93 // If the 'IsOwner' bit is set (via SetOwner()) all containers are deleted 94 // by the destructor 95 // 96 inline void MTaskList::SetOwner(Bool_t enable=kTRUE) 97 { 98 enable ? SetBit(kIsOwner) : ResetBit(kIsOwner); 99 } 100 101 102 // -------------------------------------------------------------------------- 103 // 82 104 // Set the logging stream for the all tasks in the list and the tasklist 83 105 // itself. … … 169 191 // -------------------------------------------------------------------------- 170 192 // 193 // Find an object in the list. 194 // 'name' is the name of the object you are searching for. 195 // 196 TObject *MTaskList::FindObject(const char *name) const 197 { 198 return fTasks.FindObject(name); 199 } 200 201 // -------------------------------------------------------------------------- 202 // 203 // check if the object is in the list or not 204 // 205 TObject *MTaskList::FindObject(TObject *obj) const 206 { 207 return fTasks.FindObject(obj); 208 } 209 210 // -------------------------------------------------------------------------- 211 // 171 212 // do pre processing (before eventloop) of all tasks in the task-list 172 213 // … … 187 228 // loop over all tasks for preproccesing 188 229 // 189 while ( (task=(MTask*)Next()))230 while ((task=(MTask*)Next())) 190 231 { 191 232 *fLog << task->GetName() << "... " << flush;
Note:
See TracChangeset
for help on using the changeset viewer.