90 |
|
public: |
91 |
|
SimpleTypeData() : GenericData(), data_(ElemDataType()) {} |
92 |
|
SimpleTypeData(const std::string& id) : GenericData(id), data_(ElemDataType()) {} |
93 |
< |
SimpleTypeData(const std::string&id , const const ElemDataType& data) : GenericData(id), data_(data) {} |
93 |
> |
SimpleTypeData(const std::string&id , const ElemDataType& data) : GenericData(id), data_(data) {} |
94 |
|
template<typename T> |
95 |
|
SimpleTypeData(const SimpleTypeData<T>& s) { |
96 |
|
data_ = s.getData(); |
137 |
|
|
138 |
|
/** |
139 |
|
* @typedef StringGenericData |
140 |
< |
* A generic data type contains a string variable |
140 |
> |
* A generic data type contains a std::stringvariable |
141 |
|
* |
142 |
|
* @code |
143 |
|
* StringGenericData* s = new StringGenericData("MyStringGenericData"); |
188 |
|
|
189 |
|
/** |
190 |
|
* @typedef IntVectorGenericData |
191 |
< |
* A generic data type contains a vector<int> variable. |
191 |
> |
* A generic data type contains a std::vector<int> variable. |
192 |
|
*/ |
193 |
|
typedef STLContainerTypeData<std::vector, int> IntVectorGenericData; |
194 |
|
|
195 |
|
/** |
196 |
|
* @typedef IntVectorGenericData |
197 |
< |
* A generic data type contains a vector<float> variable. |
197 |
> |
* A generic data type contains a std::vector<float> variable. |
198 |
|
*/ |
199 |
|
typedef STLContainerTypeData<std::vector, float> FloatVectorGenericData; |
200 |
|
|
201 |
|
/** |
202 |
|
* @typedef IntVectorGenericData |
203 |
< |
* A generic data type contains a vector<double> variable. |
203 |
> |
* A generic data type contains a std::vector<double> variable. |
204 |
|
*/ |
205 |
|
typedef STLContainerTypeData<std::vector, double> DoubleVectorGenericData; |
206 |
|
|
207 |
|
/** |
208 |
|
* @typedef StringVectorGenericData |
209 |
< |
* A generic data type contains a vector<string> variable. |
209 |
> |
* A generic data type contains a std::vector<string> variable. |
210 |
|
* |
211 |
|
* @code |
212 |
|
* StringVectorGenericData* sv = new StringVectorGenericData("MyStringVector"); |
236 |
|
|
237 |
|
/** |
238 |
|
* @typedef IntVectorGenericData |
239 |
< |
* A generic data type contains a list<vector<string> > variable. |
239 |
> |
* A generic data type contains a std::list<vector<string> > variable. |
240 |
|
*/ |
241 |
|
typedef STLContainerTypeData<std::list, std::vector<int> > IntVectorListGenericData; |
242 |
|
|