Ignore:
Timestamp:
05/19/05 15:38:38 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r5779 r7064  
    928928    return kTRUE;
    929929}
     930
     931// --------------------------------------------------------------------------
     932//
     933// Can be used to create an iterator over all tasks, eg:
     934//   MTaskList tlist;
     935//   TIter Next(tlist); // Be aware: Use a object here rather than a pointer!
     936//   TObject *o=0;
     937//   while ((o=Next()))
     938//   {
     939//       [...]
     940//   }
     941//
     942MTaskList::operator TIterator*() const
     943{
     944    return new TListIter(fTasks);
     945}
  • trunk/MagicSoft/Mars/mbase/MTaskList.h

    r5692 r7064  
    8484    Bool_t WriteEnv(TEnv &env, TString prefix, Bool_t print=kFALSE) const;
    8585
     86    operator TIterator*() const;
     87
    8688    ClassDef(MTaskList, 1) //collection of tasks to be performed in the eventloop
    8789};
Note: See TracChangeset for help on using the changeset viewer.