/******************************************************************************* * BArray.h BEAM Array * T.Barnaby, BEAM Ltd, 2007-02-06 ******************************************************************************* */ #ifndef BArray_H #define BArray_H 1 #include #include /// Template based Array class. /// This is based on the Standard C++ library vector class and has all of the /// functionality of that class. template class BArray : public std::vector { public: BArray() : std::vector() {} BArray(BSize size, T value = T()) : std::vector(size, value) {} BArray(const BArray& array) : std::vector(array) {} #ifdef OLD_GXX T* data(){ return &(*std::vector::begin()); } #endif private: }; #endif