Ignore:
Timestamp:
04/12/07 12:47:20 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MArrayB.h

    r7808 r8398  
    111111    }
    112112
     113    void Reset(Byte_t v)
     114    {
     115        for (Byte_t *b=fArray; b<fArray+fN; b++)
     116            *b = v;
     117    }
     118
     119
    113120    void Set(UInt_t n)
    114121    {
  • trunk/MagicSoft/Mars/mbase/MArrayD.h

    r8129 r8398  
    9696    }
    9797
     98    void Reset(Double_t v)
     99    {
     100        for (Double_t *d=fArray; d<fArray+fN; d++)
     101            *d = v;
     102    }
     103
    98104    void Set(UInt_t n)
    99105    {
  • trunk/MagicSoft/Mars/mbase/MArrayF.h

    r8129 r8398  
    9696    }
    9797
    98     void Reset(Float_t f)
     98    void Reset(Float_t v)
    9999    {
    100         for (UInt_t i=0; i<fN; i++)
    101             fArray[i] = f;
     100        for (Float_t *f=fArray; f<fArray+fN; f++)
     101            *f = v;
    102102    }
    103103
  • trunk/MagicSoft/Mars/mbase/MArrayI.h

    r7808 r8398  
    9595    }
    9696
     97    void Reset(Int_t v)
     98    {
     99        for (Int_t *i=fArray; i<fArray+fN; i++)
     100            *i = v;
     101    }
     102
    97103    void Set(UInt_t n)
    98104    {
  • trunk/MagicSoft/Mars/mbase/MArrayS.h

    r7808 r8398  
    103103    }
    104104
     105    void Reset(UShort_t v)
     106    {
     107        for (UShort_t *s=fArray; s<fArray+fN; s++)
     108            *s = v;
     109    }
     110
    105111    void Set(UInt_t n)
    106112    {
Note: See TracChangeset for help on using the changeset viewer.