--- trunk/OOPSE-3.0/src/utils/GenericData.hpp 2005/01/12 22:41:40 1930 +++ trunk/OOPSE-3.0/src/utils/GenericData.hpp 2005/02/21 15:21:54 2054 @@ -181,23 +181,21 @@ namespace oopse{ * @template ContainerType * @template ElemDataType */ - template > class ContainerType, - typename ElemDataType > - class STLContainerTypeData : public GenericData, public ContainerType{ + template + class VectorTypeData : public GenericData, public std::vector{ 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), std::vector() {} - 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); + VectorTypeData::operator=(s); return *this; } }; @@ -206,19 +204,19 @@ namespace oopse{ * @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 +246,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