10 #ifndef vtkDGArrayOutputAccessor_h
11 #define vtkDGArrayOutputAccessor_h
14 #include "vtkFiltersCellGridModule.h"
19 VTK_ABI_NAMESPACE_BEGIN
48 assert(ii < this->Size);
49 return this->Data[ii];
51 const double*
data()
const {
return this->Data; }
52 double*
data() {
return this->Data; }
53 int size()
const {
return this->Size; }
56 operator bool()
const {
return !!this->Data && this->Size > 0; }
58 double* Data{
nullptr };
62 Tuple operator[](vtkTypeUInt64 tupleId);
63 vtkTypeUInt64
GetKey()
const {
return this->Key; }
68 std::size_t
size()
const;
70 vtkTypeUInt64 operator++();
71 vtkTypeUInt64 operator++(
int);
76 vtkTypeUInt64 Key{ 0 };
82 #endif // vtkDGArrayOutputAccessor_h
Expose a tuple in a vtkDoubleArray as an object with a size() method to satisfy requirements of the o...
Store values interpolated from DG cells into a vtkDoubleArray instance.
vtkVector< T, Size > & operator+=(vtkVector< T, Size > &a, const vtkVector< T, Size > &b)
Add the vector b to the vector a of the same basic type.
const double * data() const
Tuple(double *data, int size)
dynamic, self-adjusting array of double
double & operator[](int ii)
vtkTypeUInt64 GetKey() const