VTK-m  2.0
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ > Class Template Reference

#include <CastAndCall.h>

Public Types

using OriginalCellSetType = OriginalCellSetType_
 
using PermutationArrayHandleType = PermutationArrayHandleType_
 
template<typename VisitTopology , typename IncidentTopology >
using ExecConnectivityType = typename internal::CellSetPermutationConnectivityChooser< VisitTopology, IncidentTopology, OriginalCellSetType, PermutationArrayHandleType >::ExecConnectivityType
 

Public Member Functions

VTKM_CONT CellSetPermutation (const PermutationArrayHandleType &validCellIds, const OriginalCellSetType &cellset)
 
VTKM_CONT CellSetPermutation ()
 
 ~CellSetPermutation () override
 
 CellSetPermutation (const CellSetPermutation &src)
 
CellSetPermutationoperator= (const CellSetPermutation &src)
 
const VTKM_CONT OriginalCellSetTypeGetFullCellSet () const
 
const VTKM_CONT PermutationArrayHandleTypeGetValidCellIds () const
 
VTKM_CONT vtkm::Id GetNumberOfCells () const override
 
VTKM_CONT vtkm::Id GetNumberOfPoints () const override
 
VTKM_CONT vtkm::Id GetNumberOfFaces () const override
 
VTKM_CONT vtkm::Id GetNumberOfEdges () const override
 
VTKM_CONT void ReleaseResourcesExecution () override
 
VTKM_CONT vtkm::IdComponent GetNumberOfPointsInCell (vtkm::Id cellIndex) const override
 
 VTKM_DEPRECATED (1.6, "Calling GetCellShape(cellid) is a performance bug. Call ShapesReadPortal() " "and loop over the Get.") vtkm
 
VTKM_CONT vtkm::Id GetSchedulingRange (vtkm::TopologyElementTagCell) const
 
VTKM_CONT vtkm::Id GetSchedulingRange (vtkm::TopologyElementTagPoint) const
 
VTKM_CONT ExecConnectivityType< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPointPrepareForInput (vtkm::cont::DeviceAdapterId device, vtkm::TopologyElementTagCell visitTopology, vtkm::TopologyElementTagPoint incidentTopology, vtkm::cont::Token &token) const
 
VTKM_CONT ExecConnectivityType< vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCellPrepareForInput (vtkm::cont::DeviceAdapterId device, vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell, vtkm::cont::Token &token) const
 
VTKM_CONT void PrintSummary (std::ostream &out) const override
 

Private Types

using VisitPointsWithCellsConnectivity = vtkm::cont::internal::ConnectivityExplicitInternals< typename ArrayHandleConstant< vtkm::UInt8 >::StorageTag >
 

Private Member Functions

 VTKM_IS_CELL_SET (OriginalCellSetType_)
 
 VTKM_IS_ARRAY_HANDLE (PermutationArrayHandleType_)
 
 VTKM_STATIC_ASSERT_MSG ((std::is_same< vtkm::Id, typename PermutationArrayHandleType_::ValueType >::value), "Must use ArrayHandle with value type of Id for permutation array.")
 

Private Attributes

PermutationArrayHandleType ValidCellIds
 
OriginalCellSetType FullCellSet
 
VisitPointsWithCellsConnectivity VisitPointsWithCells
 

Member Typedef Documentation

◆ ExecConnectivityType

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
template<typename VisitTopology , typename IncidentTopology >
using vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::ExecConnectivityType = typename internal::CellSetPermutationConnectivityChooser< VisitTopology, IncidentTopology, OriginalCellSetType, PermutationArrayHandleType>::ExecConnectivityType

◆ OriginalCellSetType

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
using vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::OriginalCellSetType = OriginalCellSetType_

◆ PermutationArrayHandleType

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
using vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::PermutationArrayHandleType = PermutationArrayHandleType_

◆ VisitPointsWithCellsConnectivity

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
using vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VisitPointsWithCellsConnectivity = vtkm::cont::internal::ConnectivityExplicitInternals< typename ArrayHandleConstant<vtkm::UInt8>::StorageTag>
private

Constructor & Destructor Documentation

◆ CellSetPermutation() [1/3]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::CellSetPermutation ( const PermutationArrayHandleType validCellIds,
const OriginalCellSetType cellset 
)
inline

◆ CellSetPermutation() [2/3]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::CellSetPermutation ( )
inline

◆ ~CellSetPermutation()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::~CellSetPermutation ( )
inlineoverride

◆ CellSetPermutation() [3/3]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::CellSetPermutation ( const CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ > &  src)
inline

Member Function Documentation

◆ GetFullCellSet()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
const VTKM_CONT OriginalCellSetType& vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetFullCellSet ( ) const
inline

◆ GetNumberOfCells()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetNumberOfCells ( ) const
inlineoverride

◆ GetNumberOfEdges()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetNumberOfEdges ( ) const
inlineoverride

◆ GetNumberOfFaces()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetNumberOfFaces ( ) const
inlineoverride

◆ GetNumberOfPoints()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetNumberOfPoints ( ) const
inlineoverride

◆ GetNumberOfPointsInCell()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::IdComponent vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetNumberOfPointsInCell ( vtkm::Id  cellIndex) const
inlineoverride

◆ GetSchedulingRange() [1/2]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetSchedulingRange ( vtkm::TopologyElementTagCell  ) const
inline

◆ GetSchedulingRange() [2/2]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT vtkm::Id vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetSchedulingRange ( vtkm::TopologyElementTagPoint  ) const
inline

◆ GetValidCellIds()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
const VTKM_CONT PermutationArrayHandleType& vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::GetValidCellIds ( ) const
inline

◆ operator=()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
CellSetPermutation& vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::operator= ( const CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ > &  src)
inline

◆ PrepareForInput() [1/2]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT ExecConnectivityType<vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint> vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::PrepareForInput ( vtkm::cont::DeviceAdapterId  device,
vtkm::TopologyElementTagCell  visitTopology,
vtkm::TopologyElementTagPoint  incidentTopology,
vtkm::cont::Token token 
) const
inline

◆ PrepareForInput() [2/2]

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT ExecConnectivityType<vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell> vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::PrepareForInput ( vtkm::cont::DeviceAdapterId  device,
vtkm::TopologyElementTagPoint  ,
vtkm::TopologyElementTagCell  ,
vtkm::cont::Token token 
) const
inline

◆ PrintSummary()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT void vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::PrintSummary ( std::ostream &  out) const
inlineoverride

◆ ReleaseResourcesExecution()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VTKM_CONT void vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::ReleaseResourcesExecution ( )
inlineoverride

◆ VTKM_DEPRECATED()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VTKM_DEPRECATED ( 1.  6,
"Calling GetCellShape(cellid) is a performance bug. Call ShapesReadPortal() " "and loop over the Get."   
)
inline

◆ VTKM_IS_ARRAY_HANDLE()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VTKM_IS_ARRAY_HANDLE ( PermutationArrayHandleType_  )
private

◆ VTKM_IS_CELL_SET()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VTKM_IS_CELL_SET ( OriginalCellSetType_  )
private

◆ VTKM_STATIC_ASSERT_MSG()

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VTKM_STATIC_ASSERT_MSG ( (std::is_same< vtkm::Id, typename PermutationArrayHandleType_::ValueType >::value)  ,
"Must use ArrayHandle with value type of Id for permutation array."   
)
private

Member Data Documentation

◆ FullCellSet

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
OriginalCellSetType vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::FullCellSet
private

◆ ValidCellIds

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
PermutationArrayHandleType vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::ValidCellIds
private

◆ VisitPointsWithCells

template<typename OriginalCellSetType_ , typename PermutationArrayHandleType_ = vtkm::cont::ArrayHandle<vtkm::Id, VTKM_DEFAULT_CELLSET_PERMUTATION_STORAGE_TAG>>
VisitPointsWithCellsConnectivity vtkm::cont::CellSetPermutation< OriginalCellSetType_, PermutationArrayHandleType_ >::VisitPointsWithCells
mutableprivate

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