VTK  9.3.20240418
Classes | Namespaces | Macros | Functions
vtkGenericDataArray.h File Reference
#include "vtkDataArray.h"
#include "vtkCompiler.h"
#include "vtkGenericDataArrayLookupHelper.h"
#include "vtkSmartPointer.h"
#include "vtkTypeTraits.h"
#include <cassert>
#include "vtkGenericDataArray.txx"
Include dependency graph for vtkGenericDataArray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vtkGenericDataArray< DerivedT, ValueTypeT >
 Base interface for all typed vtkDataArray subclasses. More...
 

Namespaces

 vtkDataArrayPrivate
 

Macros

#define vtkAOSArrayNewInstanceMacro(thisClass)
 
#define VTK_GDA_TEMPLATE_EXTERN
 
#define VTK_DECLARE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType)
 
#define VTK_DECLARE_VALUERANGE_VALUETYPE(ValueType)
 

Functions

template<typename A , typename R , typename T >
VTKCOMMONCORE_EXPORT bool vtkDataArrayPrivate::DoComputeScalarRange (A *, R *, T, const unsigned char *ghosts, unsigned char ghostsToSkip)
 
template<typename A , typename R >
VTKCOMMONCORE_EXPORT bool vtkDataArrayPrivate::DoComputeVectorRange (A *, R[2], AllValues, const unsigned char *ghosts, unsigned char ghostsToSkip)
 
template<typename A , typename R >
VTKCOMMONCORE_EXPORT bool vtkDataArrayPrivate::DoComputeVectorRange (A *, R[2], FiniteValues, const unsigned char *ghosts, unsigned char ghostsToSkip)
 

Macro Definition Documentation

◆ vtkAOSArrayNewInstanceMacro

#define vtkAOSArrayNewInstanceMacro (   thisClass)
Value:
protected: \
vtkObjectBase* NewInstanceInternal() const override \
{ \
if (vtkDataArray* da = vtkDataArray::CreateDataArray(thisClass::VTK_DATA_TYPE)) \
{ \
return da; \
} \
return thisClass::New(); \
} \
\
public:
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
static vtkDataArray * CreateDataArray(int dataType)
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR,...

Definition at line 556 of file vtkGenericDataArray.h.

◆ VTK_GDA_TEMPLATE_EXTERN

#define VTK_GDA_TEMPLATE_EXTERN

Definition at line 623 of file vtkGenericDataArray.h.

◆ VTK_DECLARE_VALUERANGE_ARRAYTYPE

#define VTK_DECLARE_VALUERANGE_ARRAYTYPE (   ArrayType,
  ValueType 
)
Value:
extern template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
ArrayType*, ValueType*, vtkDataArrayPrivate::AllValues, const unsigned char*, unsigned char); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange(ArrayType*, ValueType*, \
vtkDataArrayPrivate::FiniteValues, const unsigned char*, unsigned char); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange(ArrayType*, ValueType[2], \
vtkDataArrayPrivate::AllValues, const unsigned char*, unsigned char); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange(ArrayType*, ValueType[2], \
vtkDataArrayPrivate::FiniteValues, const unsigned char*, unsigned char);
VTKCOMMONCORE_EXPORT bool DoComputeVectorRange(A *, R[2], FiniteValues, const unsigned char *ghosts, unsigned char ghostsToSkip)
VTKCOMMONCORE_EXPORT bool DoComputeScalarRange(A *, R *, T, const unsigned char *ghosts, unsigned char ghostsToSkip)

Definition at line 660 of file vtkGenericDataArray.h.

◆ VTK_DECLARE_VALUERANGE_VALUETYPE

#define VTK_DECLARE_VALUERANGE_VALUETYPE (   ValueType)
Value:
VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkSOADataArrayTemplate<ValueType>, ValueType)
Array-Of-Structs implementation of vtkGenericDataArray.
Struct-Of-Arrays implementation of vtkGenericDataArray.
#define VTK_DECLARE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType)

Definition at line 679 of file vtkGenericDataArray.h.