--- trunk/src/utils/GenericData.hpp 2005/01/12 22:41:40 246 +++ trunk/src/utils/GenericData.hpp 2005/03/01 20:10:14 385 @@ -181,44 +181,45 @@ namespace oopse{ * @template ContainerType * @template ElemDataType */ - template > class ContainerType, - typename ElemDataType > - class STLContainerTypeData : public GenericData, public ContainerType{ + template + class VectorTypeData : public GenericData { public: - typedef STLContainerTypeData SelfType; - typedef ContainerType STLContainerType; + typedef VectorTypeData SelfType; - STLContainerTypeData(const std::string& id) - : GenericData(id), ContainerType () {} + VectorTypeData(const std::string& id) + : GenericData(id){} - STLContainerTypeData(const SelfType& s) : SelfType(s){} + VectorTypeData(const SelfType& s) : SelfType(s){} SelfType& operator =(const SelfType& s){ if (this == &s) return *this; - STLContainerType::operator=(s); + this->data_ = s.data_; return *this; } + + private: + std::vector data_; }; /** * @typedef IntVectorGenericData * A generic data type contains a std::vector variable. */ - typedef STLContainerTypeData IntVectorGenericData; + typedef VectorTypeData IntVectorGenericData; /** * @typedef IntVectorGenericData * A generic data type contains a std::vector variable. */ - typedef STLContainerTypeData FloatVectorGenericData; + typedef VectorTypeData FloatVectorGenericData; /** * @typedef IntVectorGenericData * A generic data type contains a std::vector variable. */ - typedef STLContainerTypeData DoubleVectorGenericData; + typedef VectorTypeData DoubleVectorGenericData; /** * @typedef StringVectorGenericData @@ -248,17 +249,8 @@ namespace oopse{ * } * @endcode */ - typedef STLContainerTypeData StringVectorGenericData; - - /** - * @typedef IntVectorGenericData - * A generic data type contains a std::list > variable. - */ - typedef STLContainerTypeData > IntVectorListGenericData; + typedef VectorTypeData StringVectorGenericData; -#define CHIVALUE_ID "CHIVALUE" -#define INTEGRALOFCHIDT_ID "INTEGRALOFCHIDT" -#define ETAVALUE_ID "ETAVALUE" } // namespace oopse #endif //UTIL _GENERICDATA_HPP