Go to the documentation of this file.
17 #ifndef vtkToDax_Allocators_h
18 #define vtkToDax_Allocators_h
20 #include <dax/VectorTraits.h>
37 template<
typename _T,
56 p->SetNumberOfComponents(NUM_COMPONENTS);
57 p->SetNumberOfTuples(n);
67 template<
int NUM_COMPONENTS>
84 #ifdef DAX_USE_DOUBLE_PRECISION
100 template<
int NUM_COMPONENTS>
119 const size_type numCells = n/NUM_COMPONENTS;
132 #endif //vtkToDax_Allocators_h
represent and manipulate 3D points
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
void deallocate(self::pointer p, self::size_type)
ptrdiff_t difference_type
const typedef T & const_reference
const typedef T * const_pointer
pointer allocate(size_type n, self::const_pointer hint=0)
virtual void SetNumberOfTuples(vtkIdType numTuples)=0
Set the number of tuples (a component group) in the array.
void deallocate(pointer p, size_type)
vtkIdTypeArray * GetData()
Return the underlying data as a data array.
virtual void Delete()
Delete a VTK object.
pointer allocate(size_type n, const_pointer hint=0)
pointer allocate(size_type n, const_pointer hint=0)
const typedef T * const_pointer
object to represent cell connectivity
ptrdiff_t difference_type
virtual void SetNumberOfCells(vtkIdType)
Set the number of cells in the array.
const typedef T * const_pointer
const typedef T & const_reference
const typedef T & const_reference
ptrdiff_t difference_type
void deallocate(pointer p, size_type)