VTK  9.7.1
Classes | Namespaces | Macros | Functions
vtkGenericDataArray.h File Reference
#include "vtkDataArray.h"
#include "vtkCompiler.h"
#include "vtkDeprecation.h"
#include "vtkGenericDataArrayLookupHelper.h"
#include "vtkSmartPointer.h"
#include "vtkTypeTraits.h"
#include <cassert>
#include <memory>
#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, ArrayType >
 Base interface for all typed vtkDataArray subclasses. More...
 

Namespaces

 vtkDataArrayPrivate
 

Macros

#define vtkCreateGenericWrappedArrayReadInterface(T)
 
#define vtkCreateGenericWrappedArrayWriteInterface(T)
 
#define vtkCreateGenericWrappedArrayInterface(T)
 
#define vtkCreateWrappedArrayReadInterface(T)
 
#define vtkCreateWrappedArrayWriteInterface(T)
 
#define VTK_INSTANTIATE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType)
 
#define VTK_DECLARE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType)
 
#define vtkAOSArrayNewInstanceMacro(thisClass)
 
#define VTK_GDA_TEMPLATE_EXTERN
 

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

#define vtkCreateGenericWrappedArrayReadInterface (   T)
Value:
int GetDataType() const override; \
T GetDataTypeValueMin() const; \
T GetDataTypeValueMax() const; \
T* GetValueRange(int comp) VTK_SIZEHINT(2); \
T* GetValueRange() VTK_SIZEHINT(2); \
void GetValueRange(T range[2], int comp); \
void GetValueRange(T range[2], int comp);
#define VTK_SIZEHINT(...)

Definition at line 439 of file vtkGenericDataArray.h.

#define vtkCreateGenericWrappedArrayWriteInterface (   T)
Value:
void InsertTypedTuple(vtkIdType i, const T* tuple) VTK_EXPECTS(0 <= i); \
vtkIdType InsertNextTypedTuple(const T* tuple); \
void InsertValue(vtkIdType id, T f) VTK_EXPECTS(0 <= id); \
vtkIdType InsertNextValue(T f);
int vtkIdType
Definition: vtkType.h:363
#define VTK_EXPECTS(x)

Definition at line 447 of file vtkGenericDataArray.h.

#define vtkCreateGenericWrappedArrayInterface (   T)
Value:

Definition at line 452 of file vtkGenericDataArray.h.

#define vtkCreateWrappedArrayReadInterface (   T)
Value:
void GetTypedTuple(vtkIdType i, T* tuple) VTK_EXPECTS(0 <= i && i < GetNumberOfTuples()); \
T GetTypedComponent(vtkIdType i, int c) const VTK_EXPECTS(0 <= c && c < GetNumberOfComponents()) \
VTK_EXPECTS(0 <= i && GetNumberOfComponents() * i + c < GetNumberOfValues()); \
T GetValue(vtkIdType id) const VTK_EXPECTS(0 <= id && id < GetNumberOfValues());
int vtkIdType
Definition: vtkType.h:363
#define vtkCreateGenericWrappedArrayReadInterface(T)
#define VTK_EXPECTS(x)

Definition at line 459 of file vtkGenericDataArray.h.

#define vtkCreateWrappedArrayWriteInterface (   T)
Value:
void SetTypedTuple(vtkIdType i, const T* tuple) VTK_EXPECTS(0 <= i && i < GetNumberOfTuples()); \
void SetTypedComponent(vtkIdType i, int c, ValueType value); \
void SetValue(vtkIdType id, T value) VTK_EXPECTS(0 <= id && id < GetNumberOfValues()); \
bool SetNumberOfValues(vtkIdType number) override;
#define vtkCreateGenericWrappedArrayWriteInterface(T)
int vtkIdType
Definition: vtkType.h:363
#define VTK_EXPECTS(x)

Definition at line 465 of file vtkGenericDataArray.h.

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

Definition at line 472 of file vtkGenericDataArray.h.

#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 DoComputeScalarRange(A *, R *, T, const unsigned char *ghosts, unsigned char ghostsToSkip)
VTKCOMMONCORE_EXPORT bool DoComputeVectorRange(A *, R[2], FiniteValues, const unsigned char *ghosts, unsigned char ghostsToSkip)

Definition at line 497 of file vtkGenericDataArray.h.

#define vtkAOSArrayNewInstanceMacro (   thisClass)
Value:
protected: \
vtkObjectBase* NewInstanceInternal() const override \
{ \
{ \
return da; \
} \
return thisClass::New(); \
} \
\
public:
static vtkDataArray * CreateDataArray(int dataType)
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE, VTK_ID_TYPE.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44

Definition at line 515 of file vtkGenericDataArray.h.

#define VTK_GDA_TEMPLATE_EXTERN

Definition at line 538 of file vtkGenericDataArray.h.