10#ifndef vtkDGArrayOutputAccessor_h
11#define vtkDGArrayOutputAccessor_h
14#include "vtkFiltersCellGridModule.h"
19VTK_ABI_NAMESPACE_BEGIN
45 assert(ii < this->Size);
46 return this->Data[ii];
48 const double*
data()
const {
return this->Data; }
49 double*
data() {
return this->Data; }
50 int size()
const {
return this->Size; }
53 operator bool()
const {
return !!this->Data && this->Size > 0; }
55 double* Data{
nullptr };
60 vtkTypeUInt64
GetKey()
const {
return this->Key; }
73 vtkTypeUInt64 Key{ 0 };
Store values interpolated from DG cells into a vtkDoubleArray instance.
vtkTypeUInt64 operator++(int)
~vtkDGArrayOutputAccessor()
vtkDGArrayOutputAccessor & operator+=(vtkTypeUInt64 count)
vtkTypeUInt64 GetKey() const
vtkDGArrayOutputAccessor(vtkDoubleArray *result)
vtkTypeUInt64 operator++()
vtkDGArrayOutputAccessor & operator=(const vtkDGArrayOutputAccessor &other)
Tuple operator[](vtkTypeUInt64 tupleId)
vtkDGArrayOutputAccessor(const vtkDGArrayOutputAccessor &other)
dynamic, self-adjusting array of double
Expose a tuple in a vtkDoubleArray as an object with a size() method to satisfy requirements of the o...
double & operator[](int ii)
Tuple(const Tuple &)=default
Tuple(double *data, int size)
Tuple & operator=(const Tuple &)=default
const double * data() const