Ignore:
Timestamp:
02/11/09 17:35:54 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9255 r9318  
    1313{
    1414private:
    15     UInt_t fMinEntries;
    16     UInt_t fMaxEntries;
     15    UInt_t fMinEntries;   // The minimum entries per row
     16    UInt_t fMaxEntries;   // The maximum entries per row
    1717
    18     Int_t  fMaxIndex;
     18    Int_t  fMaxIndex;     // The maximum index fount in the lut
    1919
    2020    MLut *GetInverse(Bool_t uniq=kTRUE) const;
    2121
    2222public:
    23     MLut() : fMinEntries(0), fMaxEntries(0) { SetOwner(); }
     23    MLut() : fMinEntries(0), fMaxEntries(0), fMaxIndex(0) { SetOwner(); }
     24
     25    // TObjArry
     26    void Delete(Option_t *option="");
    2427
    2528    // MLut Getter
    2629    const MArrayI &GetRow(UInt_t i) const;
     30
     31     Int_t GetNumRows() const { return GetEntriesFast(); }
    2732
    2833    UInt_t GetMaxEntries() const { return fMaxEntries; }
     
    3136    Bool_t HasConstantLength() const { return fMinEntries==fMaxEntries; }
    3237    Bool_t IsEmpty() const { return fMaxEntries==0; }
     38    Bool_t IsDefault() const;
    3339
    34     // MLut convertions
     40    // MLut conversions
    3541    void SetInverse(const MLut &lut, Bool_t uniq=kTRUE);
    3642    void Invert(Bool_t uniq=kTRUE);
     43
     44    // Setter
     45    void SetDefault(UInt_t n);
    3746
    3847    // MLut I/O
Note: See TracChangeset for help on using the changeset viewer.