60 |
Default constructor for DataTagged. Creates a DataTagged object for which |
Default constructor for DataTagged. Creates a DataTagged object for which |
61 |
the only data-point is a scalar data-point with value 0.0. All tags |
the only data-point is a scalar data-point with value 0.0. All tags |
62 |
will map to this single data-point. |
will map to this single data-point. |
63 |
|
T |
64 |
*/ |
*/ |
65 |
DataTagged(); |
DataTagged(); |
66 |
|
|
79 |
will be generated. |
will be generated. |
80 |
\param defaultValue - Input - Value returned if a requested tag doesn't exist. |
\param defaultValue - Input - Value returned if a requested tag doesn't exist. |
81 |
\param what - Input - A description of what this data represents. |
\param what - Input - A description of what this data represents. |
82 |
|
T |
83 |
*/ |
*/ |
84 |
DataTagged(const TagListType& tagKeys, |
DataTagged(const TagListType& tagKeys, |
85 |
const ValueListType& values, |
const ValueListType& values, |
100 |
DataTagged(const FunctionSpace& what, |
DataTagged(const FunctionSpace& what, |
101 |
const DataArrayView::ShapeType &shape, |
const DataArrayView::ShapeType &shape, |
102 |
const int tags[], |
const int tags[], |
103 |
const ValueType &data); |
const ValueType& data); |
104 |
|
|
105 |
/** |
/** |
106 |
\brief |
\brief |
149 |
Write the data as a string. |
Write the data as a string. |
150 |
Writes out each tag, including the default, and the data-point which is |
Writes out each tag, including the default, and the data-point which is |
151 |
associated with each tag. |
associated with each tag. |
152 |
|
T |
153 |
*/ |
*/ |
154 |
virtual |
virtual |
155 |
std::string |
std::string |
159 |
\brief |
\brief |
160 |
Return the tag number associated with the given data-point number |
Return the tag number associated with the given data-point number |
161 |
according to the associated function space. |
according to the associated function space. |
162 |
|
T |
163 |
*/ |
*/ |
164 |
virtual |
virtual |
165 |
int |
int |
175 |
|
|
176 |
\param sampleNo - Input - sample number. |
\param sampleNo - Input - sample number. |
177 |
\param dataPointNo - Input - data-point number. |
\param dataPointNo - Input - data-point number. |
178 |
|
T |
179 |
*/ |
*/ |
180 |
virtual |
virtual |
181 |
ValueType::size_type |
ValueType::size_type |
254 |
Description: |
Description: |
255 |
Return a view into the data-point associated with the given tag. |
Return a view into the data-point associated with the given tag. |
256 |
\param tag - Input - Integer key. |
\param tag - Input - Integer key. |
257 |
|
T |
258 |
*/ |
*/ |
259 |
DataArrayView |
DataArrayView |
260 |
getDataPointByTag(int tag) const; |
getDataPointByTag(int tag) const; |
268 |
and data-point numbers. |
and data-point numbers. |
269 |
\param sampleNo - Input. |
\param sampleNo - Input. |
270 |
\param dataPointNo - Input. |
\param dataPointNo - Input. |
271 |
|
T |
272 |
*/ |
*/ |
273 |
virtual |
virtual |
274 |
DataArrayView |
DataArrayView |
281 |
|
|
282 |
Description: |
Description: |
283 |
Return a reference to the tag offset lookup table. |
Return a reference to the tag offset lookup table. |
284 |
|
T |
285 |
*/ |
*/ |
286 |
const DataMapType& |
const DataMapType& |
287 |
getTagLookup() const; |
getTagLookup() const; |
295 |
|
|
296 |
NOTE: The DataTagged tag map does not necessarily coincide with the tag |
NOTE: The DataTagged tag map does not necessarily coincide with the tag |
297 |
keys in the associated function space. |
keys in the associated function space. |
298 |
|
T |
299 |
*/ |
*/ |
300 |
bool |
bool |
301 |
isCurrentTag(int tag) const; |
isCurrentTag(int tag) const; |
307 |
Description: |
Description: |
308 |
Return the default value. This value is associated with any tag which |
Return the default value. This value is associated with any tag which |
309 |
is not explicitly recorded in this DataTagged object's tag map. |
is not explicitly recorded in this DataTagged object's tag map. |
310 |
|
T |
311 |
*/ |
*/ |
312 |
DataArrayView& |
DataArrayView& |
313 |
getDefaultValue(); |
getDefaultValue(); |
321 |
|
|
322 |
Description: |
Description: |
323 |
Return the number of doubles stored for the Data. |
Return the number of doubles stored for the Data. |
324 |
|
T |
325 |
*/ |
*/ |
326 |
virtual |
virtual |
327 |
ValueType::size_type |
ValueType::size_type |