Ignore:
Timestamp:
10/02/01 14:46:56 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r887 r959  
    8080// --------------------------------------------------------------------------
    8181//
     82//  If the 'IsOwner' bit is set (via SetOwner()) all tasks are deleted
     83//  by the destructor
     84//
     85MTaskList::~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//
     96inline void MTaskList::SetOwner(Bool_t enable=kTRUE)
     97{
     98    enable ? SetBit(kIsOwner) : ResetBit(kIsOwner);
     99}
     100
     101
     102// --------------------------------------------------------------------------
     103//
    82104//  Set the logging stream for the all tasks in the list and the tasklist
    83105//  itself.
     
    169191// --------------------------------------------------------------------------
    170192//
     193//  Find an object in the list.
     194//  'name' is the name of the object you are searching for.
     195//
     196TObject *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//
     205TObject *MTaskList::FindObject(TObject *obj) const
     206{
     207    return fTasks.FindObject(obj);
     208}
     209
     210// --------------------------------------------------------------------------
     211//
    171212// do pre processing (before eventloop) of all tasks in the task-list
    172213//
     
    187228    // loop over all tasks for preproccesing
    188229    //
    189     while ( (task=(MTask*)Next()) )
     230    while ((task=(MTask*)Next()))
    190231    {
    191232        *fLog << task->GetName() << "... " << flush;
Note: See TracChangeset for help on using the changeset viewer.