VTK  9.4.20241222
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

namespace  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
abstract base class for most VTK objects

Definition at line 557 of file vtkGenericDataArray.h.

◆ VTK_GDA_TEMPLATE_EXTERN

#define VTK_GDA_TEMPLATE_EXTERN

Definition at line 624 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);

Definition at line 661 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 680 of file vtkGenericDataArray.h.