Changeset 1937


Ignore:
Timestamp:
04/10/03 13:13:08 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r1935 r1937  
    3030// (use with filters). For more details see the description of the
    3131// constructors.
     32//
     33// To invert the meaning of the contained filter call SetInverted()
    3234//
    3335//  Input Containers:
     
    157159    return kFALSE;
    158160}
     161
     162void MContinue::SetInverted(Bool_t i)
     163{
     164    GetFilter()->SetInverted(i);
     165}
     166
     167Bool_t MContinue::IsInverted() const
     168{
     169    return GetFilter()->IsInverted();
     170}
  • trunk/MagicSoft/Mars/mbase/MContinue.h

    r1935 r1937  
    3434    ~MContinue();
    3535
    36     void SetFilter(MFilter *filter) { if (!TestBit(kIsOwner)) MTask::SetFilter(filter); }
     36    //    void SetFilter(MFilter *filter) { if (!TestBit(kIsOwner)) MTask::SetFilter(filter); }
     37
     38    void SetInverted(Bool_t i=kTRUE);
     39    Bool_t IsInverted() const;
    3740
    3841    ClassDef(MContinue, 1) //Task returning kCONTINUE
  • trunk/MagicSoft/Mars/mbase/MFilter.h

    r1936 r1937  
    2222    Bool_t IsConditionTrue() const { return fInverted ? !IsExpressionTrue() : IsExpressionTrue(); }
    2323
    24     void SetInverted(Bool_t i) { fInverted=i; }
     24    void SetInverted(Bool_t i=kTRUE) { fInverted=i; }
    2525    Bool_t IsInverted() const  { return fInverted; }
    2626
Note: See TracChangeset for help on using the changeset viewer.