VTK-m  2.2
CellLocatorGeneral.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_CellLocatorGeneral_h
11 #define vtk_m_cont_CellLocatorGeneral_h
12 
16 
18 
19 #include <vtkm/cont/Variant.h>
20 
21 #include <functional>
22 #include <memory>
23 
24 namespace vtkm
25 {
26 namespace cont
27 {
28 
42 {
43 public:
47 
48  using ExecLocatorList =
50  vtkm::cont::internal::ExecutionObjectType<vtkm::cont::CellLocatorRectilinearGrid>,
51  vtkm::cont::internal::ExecutionObjectType<vtkm::cont::CellLocatorTwoLevel>>;
52 
54  using LastCell = typename ExecObjType::LastCell;
55 
56  VTKM_CONT ExecObjType PrepareForExecution(vtkm::cont::DeviceAdapterId device,
57  vtkm::cont::Token& token) const;
58 
59 private:
60  vtkm::cont::ListAsVariant<ContLocatorList> LocatorImpl;
61 
62  VTKM_CONT void Build() override;
63 
64  struct PrepareFunctor;
65 };
66 }
67 } // vtkm::cont
68 
69 #endif // vtk_m_cont_CellLocatorGeneral_h
vtkm::cont::CellLocatorRectilinearGrid
Definition: cont/CellLocatorRectilinearGrid.h:22
CellLocatorMultiplexer.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::ListApply
typename detail::ListApplyImpl< List, Target >::type ListApply
Applies the list of types to a template.
Definition: List.h:138
Variant.h
CellLocatorUniformGrid.h
vtkm::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
CellLocatorTwoLevel.h
vtkm::cont::CellLocatorBase
Base class for all CellLocator classes.
Definition: CellLocatorBase.h:35
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::cont::CellLocatorGeneral::ExecObjType
vtkm::ListApply< ExecLocatorList, vtkm::exec::CellLocatorMultiplexer > ExecObjType
Definition: CellLocatorGeneral.h:53
vtkm::cont::CellLocatorGeneral
A CellLocator that works generally well for any supported cell set.
Definition: CellLocatorGeneral.h:41
vtkm::cont::CellLocatorGeneral::LocatorImpl
vtkm::cont::ListAsVariant< ContLocatorList > LocatorImpl
Definition: CellLocatorGeneral.h:60
vtkm::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
vtkm::cont::CellLocatorGeneral::LastCell
typename ExecObjType::LastCell LastCell
Definition: CellLocatorGeneral.h:54
CellLocatorRectilinearGrid.h
vtkm::cont::CellLocatorUniformGrid
Definition: cont/CellLocatorUniformGrid.h:22
vtkm::List
A template used to hold a list of types.
Definition: List.h:39
vtkm::cont::CellLocatorTwoLevel
A locator that uses 2 nested levels of grids.
Definition: cont/CellLocatorTwoLevel.h:43