Changeset 5986
- Timestamp:
- 01/25/05 11:01:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5985 r5986 26 26 - fixed a lot of 'default argument'-warnings to make to code 27 27 compile 28 29 * mbase/MParContainer.[h,cc]: 30 - moved the empty Reset() function into the source file and 31 added a lot of comments 28 32 29 33 -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r5713 r5986 435 435 } 436 436 437 // -------------------------------------------------------------------------- 438 // 439 // This virtual function is called for all parameter containers which are 440 // found in the parameter list automatically each time the tasklist is 441 // executed. 442 // 443 // By overwriting this function you can invalidate the contents of a 444 // container before each execution of the tasklist: 445 // 446 // For example: 447 // void MHillas::Reset() 448 // { 449 // fWidth = -1; 450 // } 451 // 452 // (While -1 is obviously a impossible value for fWidth you can immediatly 453 // see - if you Print() the contents of this container - that MHillasCalc 454 // has not caluclated the width in this runthrough of the tasklist) 455 // 456 // Overwriting MParConatiner::Reset() in your container makes it 457 // unnecessary to call any Clear() or Reset() manually in your task and 458 // you make sure, that you don't keep results of previous runs of your 459 // tasklist by chance. 460 // 461 // MParContainer::Reset() itself does nothing. 462 // 463 void MParContainer::Reset() 464 { 465 } 466 437 467 TMethodCall *MParContainer::GetterMethod(const char *name) const 438 468 { -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r5713 r5986 93 93 virtual MParContainer *New() const; 94 94 virtual void SetLogStream(MLog *lg) { fLog = lg; } 95 virtual void Reset() { }95 virtual void Reset(); 96 96 virtual Bool_t IsReadyToSave() const { return fReadyToSave; } 97 97 virtual void SetReadyToSave(Bool_t flag=kTRUE) { fReadyToSave=flag; }
Note:
See TracChangeset
for help on using the changeset viewer.