Changeset 4577 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/11/04 12:01:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r3568 r4577 515 515 } 516 516 517 if (!cls->InheritsFrom(MParContainer::Class())) 518 { 519 *fLog << " - Class doesn't inherit from MParContainer." << endl; 520 return NULL; 521 } 522 517 523 // 518 524 // create the parameter container of the the given class type … … 936 942 return kTRUE; 937 943 } 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 // 956 MParList::operator TIterator*() const 957 { 958 return new TOrdCollectionIter(fContainer); 959 } -
trunk/MagicSoft/Mars/mbase/MParList.h
r2958 r4577 94 94 Bool_t WriteEnv(TEnv &env, TString prefix, Bool_t print=kFALSE) const; 95 95 96 operator TIterator*() const; 97 96 98 ClassDef(MParList, 1) // list of parameter containers (MParContainer) 97 99 };
Note:
See TracChangeset
for help on using the changeset viewer.