VTK  9.4.20241222
Public Member Functions | Public Attributes | List of all members
vtkBatch< TBatchData > Class Template Reference

vtkBatch is a simple structure that holds a begin and end id. More...

#include <vtkBatch.h>

Public Member Functions

 vtkBatch ()=default
 
 ~vtkBatch ()=default
 

Public Attributes

vtkIdType BeginId
 
vtkIdType EndId
 
TBatchData Data
 

Detailed Description

template<typename TBatchData>
class vtkBatch< TBatchData >

vtkBatch is a simple structure that holds a begin and end id.

vtkBatch is a simple structure that holds a begin and end id of an element, e.g. cell or point. vtkBatches is a vector with vtkBatch objects. vtkBatch has a template parameter that is used to store additional information for each batch.

The concept of batches is useful because it can be used to avoid spending memory by saving information for each element of a batch, e.g. number of output cells/points. Instead, you can save the aggregate information for all elements in the batch.

Aside from saving memory, they are particularly useful because you can trim batches that should be skipped in a follow-up step. For example, if you are processing cells, and some batches of cells are not generating any output, you can trim those batches.

Trimming batches is useful both for avoiding extra computation and also improving load balancing in parallel processing.

See also
vtkTableBasedClipDataSet, vtkExtractCells, vtkStaticFaceHashLinksTemplate, vtkPolyDataPlaneCutter, vtkPolyDataPlaneClipper, vtkStructuredDataPlaneCutter

Definition at line 40 of file vtkBatch.h.

Constructor & Destructor Documentation

◆ vtkBatch()

template<typename TBatchData >
vtkBatch< TBatchData >::vtkBatch ( )
default

◆ ~vtkBatch()

template<typename TBatchData >
vtkBatch< TBatchData >::~vtkBatch ( )
default

Member Data Documentation

◆ BeginId

template<typename TBatchData >
vtkIdType vtkBatch< TBatchData >::BeginId

Definition at line 45 of file vtkBatch.h.

◆ EndId

template<typename TBatchData >
vtkIdType vtkBatch< TBatchData >::EndId

Definition at line 46 of file vtkBatch.h.

◆ Data

template<typename TBatchData >
TBatchData vtkBatch< TBatchData >::Data

Definition at line 47 of file vtkBatch.h.


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