CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/Calibration/interface/fixedArray.h

Go to the documentation of this file.
00001 #ifndef FIXEDARRAY_H
00002 #define FIXEDARRAY_H
00003 template<typename T, unsigned int S>
00004 class fixedArray {
00005     public:
00006         fixedArray() {}
00007 
00008         operator T*() { return content; }
00009         operator const T*() const { return content; }
00010         T& operator [](const unsigned int i) { return content[i]; }
00011         const T& operator [](const unsigned int i) const { return
00012 content[i]; }
00013 
00014     private:
00015         T content[S];
00016 };
00017 #endif