VTK  9.7.1
Public Member Functions | Public Attributes | List of all members
vtkDGArrayOutputAccessor::Tuple Struct Reference

Expose a tuple in a vtkDoubleArray as an object with a size() method to satisfy requirements of the output iterator API. More...

#include <vtkDGArrayOutputAccessor.h>

Public Member Functions

 Tuple ()=default
 
 Tuple (double *data, int size)
 
 Tuple (const Tuple &)=default
 
Tuple & operator= (const Tuple &)=default
 
double & operator[] (int ii)
 
const double * data () const
 
double * data ()
 
int size () const
 
 operator bool () const
 If a tuple is "null", make it "falsy"; otherwise it is "truthy.". More...
 

Public Attributes

double * Data { nullptr }
 
int Size { 0 }
 

Detailed Description

Expose a tuple in a vtkDoubleArray as an object with a size() method to satisfy requirements of the output iterator API.

Definition at line 35 of file vtkDGArrayOutputAccessor.h.

Constructor & Destructor Documentation

vtkDGArrayOutputAccessor::Tuple::Tuple ( )
default
vtkDGArrayOutputAccessor::Tuple::Tuple ( double *  data,
int  size 
)
inline

Definition at line 38 of file vtkDGArrayOutputAccessor.h.

vtkDGArrayOutputAccessor::Tuple::Tuple ( const Tuple &  )
default

Member Function Documentation

Tuple& vtkDGArrayOutputAccessor::Tuple::operator= ( const Tuple &  )
default
double& vtkDGArrayOutputAccessor::Tuple::operator[] ( int  ii)
inline

Definition at line 46 of file vtkDGArrayOutputAccessor.h.

const double* vtkDGArrayOutputAccessor::Tuple::data ( ) const
inline

Definition at line 51 of file vtkDGArrayOutputAccessor.h.

double* vtkDGArrayOutputAccessor::Tuple::data ( )
inline

Definition at line 52 of file vtkDGArrayOutputAccessor.h.

int vtkDGArrayOutputAccessor::Tuple::size ( ) const
inline

Definition at line 53 of file vtkDGArrayOutputAccessor.h.

vtkDGArrayOutputAccessor::Tuple::operator bool ( ) const
inline

If a tuple is "null", make it "falsy"; otherwise it is "truthy.".

Definition at line 56 of file vtkDGArrayOutputAccessor.h.

Member Data Documentation

double* vtkDGArrayOutputAccessor::Tuple::Data { nullptr }

Definition at line 58 of file vtkDGArrayOutputAccessor.h.

int vtkDGArrayOutputAccessor::Tuple::Size { 0 }

Definition at line 59 of file vtkDGArrayOutputAccessor.h.


The documentation for this struct was generated from the following file: