File indexing completed on 2024-04-06 12:01:57
0001 #ifndef FIXEDARRAY_H
0002 #define FIXEDARRAY_H
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 template <typename T, unsigned int S>
0006 class fixedArray {
0007 public:
0008 fixedArray() {}
0009
0010 operator T*() { return content; }
0011 operator const T*() const { return content; }
0012 T& operator[](const unsigned int i) { return content[i]; }
0013 const T& operator[](const unsigned int i) const { return content[i]; }
0014
0015 private:
0016 T content[S];
0017
0018 COND_SERIALIZABLE;
0019 };
0020 #endif