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