Changeset 5986 for trunk/MagicSoft


Ignore:
Timestamp:
01/25/05 11:01:40 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5985 r5986  
    2626     - fixed a lot of 'default argument'-warnings to make to code
    2727       compile
     28
     29   * mbase/MParContainer.[h,cc]:
     30     - moved the empty Reset() function into the source file and
     31       added a lot of comments
    2832
    2933
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r5713 r5986  
    435435}
    436436
     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//
     463void MParContainer::Reset()
     464{
     465}
     466
    437467TMethodCall *MParContainer::GetterMethod(const char *name) const
    438468{
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r5713 r5986  
    9393    virtual MParContainer *New() const;
    9494    virtual void   SetLogStream(MLog *lg) { fLog = lg; }
    95     virtual void   Reset() { }
     95    virtual void   Reset();
    9696    virtual Bool_t IsReadyToSave() const             { return fReadyToSave; }
    9797    virtual void   SetReadyToSave(Bool_t flag=kTRUE) { fReadyToSave=flag; }
Note: See TracChangeset for help on using the changeset viewer.