VTK  9.4.20241108
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
 
Tupleoperator= (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.".
 

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 32 of file vtkDGArrayOutputAccessor.h.

Constructor & Destructor Documentation

◆ Tuple() [1/3]

vtkDGArrayOutputAccessor::Tuple::Tuple ( )
default

◆ Tuple() [2/3]

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

Definition at line 35 of file vtkDGArrayOutputAccessor.h.

◆ Tuple() [3/3]

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

Member Function Documentation

◆ operator=()

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

◆ operator[]()

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

Definition at line 43 of file vtkDGArrayOutputAccessor.h.

◆ data() [1/2]

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

Definition at line 48 of file vtkDGArrayOutputAccessor.h.

◆ data() [2/2]

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

Definition at line 49 of file vtkDGArrayOutputAccessor.h.

◆ size()

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

Definition at line 50 of file vtkDGArrayOutputAccessor.h.

◆ operator bool()

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

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

Definition at line 53 of file vtkDGArrayOutputAccessor.h.

Member Data Documentation

◆ Data

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

Definition at line 55 of file vtkDGArrayOutputAccessor.h.

◆ Size

int vtkDGArrayOutputAccessor::Tuple::Size { 0 }

Definition at line 56 of file vtkDGArrayOutputAccessor.h.


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