# | 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 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |