Ignore:
Timestamp:
08/11/04 12:01:44 (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/MParList.cc

    r3568 r4577  
    515515    }
    516516
     517    if (!cls->InheritsFrom(MParContainer::Class()))
     518    {
     519        *fLog << " - Class doesn't inherit from MParContainer." << endl;
     520        return NULL;
     521    }
     522
    517523    //
    518524    // create the parameter container of the the given class type
     
    936942    return kTRUE;
    937943}
     944
     945// --------------------------------------------------------------------------
     946//
     947// Can be used to create an iterator over all containers, eg:
     948//   MParList plist;
     949//   TIter Next(plist); // Be aware: Use a object here rather than a pointer!
     950//   TObject *o=0;
     951//   while ((o=Next()))
     952//   {
     953//       [...]
     954//   }
     955//
     956MParList::operator TIterator*() const
     957{
     958    return new TOrdCollectionIter(fContainer);
     959}
  • trunk/MagicSoft/Mars/mbase/MParList.h

    r2958 r4577  
    9494    Bool_t WriteEnv(TEnv &env, TString prefix, Bool_t print=kFALSE) const;
    9595
     96    operator TIterator*() const;
     97
    9698    ClassDef(MParList, 1) // list of parameter containers (MParContainer)
    9799};
Note: See TracChangeset for help on using the changeset viewer.