60#ifndef vtkmDataArrayFactory_h
61#define vtkmDataArrayFactory_h
63#include "vtkAcceleratorsVTKmCoreModule.h"
69VTK_ABI_NAMESPACE_BEGIN
a simple class to control print indentation
Describes a memory buffer on host or device, and who keeps it alive.
~vtkmDataArrayFactory() override
void ClearBuffers()
Drop all added descriptors without creating an array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddBuffer(vtkMemoryDescriptor *descriptor)
Add a buffer descriptor.
std::vector< vtkMemoryDescriptor * > Buffers
static vtkmDataArrayFactory * New()
int GetNumberOfBuffers() const
Number of buffers added so far.
vtkDataArray * CreateArray()
Create the vtkmDataArray, or nullptr on error.