VTK  9.1.0
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 >
bool vtkDataArrayPrivate::DoComputeScalarRange (A *, R *, T)
 
template<typename A , typename R >
bool vtkDataArrayPrivate::DoComputeVectorRange (A *, R[2], AllValues)
 
template<typename A , typename R >
bool vtkDataArrayPrivate::DoComputeVectorRange (A *, R[2], FiniteValues)
 

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:159
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 430 of file vtkGenericDataArray.h.

◆ VTK_GDA_TEMPLATE_EXTERN

#define VTK_GDA_TEMPLATE_EXTERN

Definition at line 495 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); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
ArrayType*, ValueType*, vtkDataArrayPrivate::FiniteValues); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
ArrayType*, ValueType[2], vtkDataArrayPrivate::AllValues); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
ArrayType*, ValueType[2], vtkDataArrayPrivate::FiniteValues);
bool DoComputeVectorRange(A *, R[2], FiniteValues)
bool DoComputeScalarRange(A *, R *, T)

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