StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_istMappingC.h
1 #ifndef St_istMappingC_h
2 #define St_istMappingC_h
3 
4 #include "TChair.h"
5 #include "tables/St_istMapping_Table.h"
6 
7 class St_istMappingC : public TChair {
8  public:
9  static St_istMappingC* instance();
10  istMapping_st *Struct(Int_t i = 0) const {return ((St_istMapping*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Int_t* mapping(Int_t i = 0) const {return Struct(i)->mapping;}
13  protected:
14  St_istMappingC(St_istMapping *table=0) : TChair(table) {}
15  virtual ~St_istMappingC() {fgInstance = 0;}
16  private:
17  static St_istMappingC* fgInstance;
18  ClassDefChair(St_istMapping, istMapping_st )
19  ClassDef(St_istMappingC,1) //C++ TChair for istMapping table class
20 };
21 #endif
Definition: TChair.h:27