ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/GenericData.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/GenericData.hpp (file contents):
Revision 2054 by tim, Mon Feb 21 15:21:54 2005 UTC vs.
Revision 2069 by tim, Tue Mar 1 20:10:14 2005 UTC

# Line 182 | Line 182 | namespace oopse{
182      * @template ElemDataType
183      */
184      template <typename ElemDataType >
185 <    class VectorTypeData : public GenericData, public std::vector<ElemDataType>{
185 >    class VectorTypeData : public GenericData {
186          public:
187              typedef VectorTypeData<ElemDataType> SelfType;
188  
189              VectorTypeData(const std::string& id)
190 <                : GenericData(id), std::vector() {}
190 >                : GenericData(id){}
191              
192              VectorTypeData(const SelfType& s) : SelfType(s){}
193  
# Line 195 | Line 195 | namespace oopse{
195                  if (this == &s)
196                      return *this;
197  
198 <                VectorTypeData::operator=(s);
198 >                this->data_ = s.data_;
199                  return *this;
200              }
201 +            
202 +        private:
203 +            std::vector<ElemDataType> data_;
204      };
205  
206      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines