23 #ifndef __vtkDataArrayTemplate_h
24 #define __vtkDataArrayTemplate_h
75 void GetTupleValue(
vtkIdType i, T* tuple);
82 void SetTupleValue(
vtkIdType i,
const T* tuple);
90 void InsertTupleValue(
vtkIdType i,
const T* tuple);
98 vtkIdType InsertNextTupleValue(
const T* tuple);
106 range[0] = this->ValueRange[0];
107 range[1] = this->ValueRange[1]; }
110 return this->ValueRange; }
114 void Squeeze() { this->ResizeAndExtend (this->MaxId+1,
false); }
130 { this->Array[id] =
value;};
136 void SetNumberOfValues(
vtkIdType number);
179 {
return this->WritePointer(
id, number); }
200 VTK_DATA_ARRAY_DELETE
216 { this->
SetArray(array, size, save, VTK_DATA_ARRAY_FREE); }
218 { this->SetArray(static_cast<T*>(array), size, save); }
224 this->SetArray(static_cast<T*>(array), size, save, deleteMethod);
255 virtual void DataElementChanged(
vtkIdType id);
268 T* ResizeAndExtend(
vtkIdType sz,
bool useExactSize);
289 #if !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION)
290 # define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T) \
291 template class VTK_COMMON_EXPORT vtkDataArrayTemplate< T >
293 # include "vtkDataArrayTemplateImplicit.txx"
294 # define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T)
297 #endif // !defined(__vtkDataArrayTemplate_h)
302 #if defined(VTK_DATA_ARRAY_TEMPLATE_TYPE)
303 # if defined(VTK_BUILD_SHARED_LIBS) && defined(_MSC_VER)
304 # pragma warning (push)
305 # pragma warning (disable: 4091) // warning C4091: 'extern ' :
307 # pragma warning (disable: 4231) // Compiler-specific extension warning.
320 # pragma warning (disable: 4910) // extern and dllexport incompatible
325 # pragma warning (pop)
327 # undef VTK_DATA_ARRAY_TEMPLATE_TYPE