VTK-m  2.0
FetchTagCellSetIn.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_exec_arg_FetchTagCellSetIn_h
11 #define vtk_m_exec_arg_FetchTagCellSetIn_h
12 
14 #include <vtkm/exec/arg/Fetch.h>
15 
16 namespace vtkm
17 {
18 namespace exec
19 {
20 namespace arg
21 {
22 
30 {
31 };
32 
33 template <typename ExecObjectType>
35 {
37  template <typename ThreadIndicesType>
38  VTKM_EXEC auto Load(const ThreadIndicesType& indices, const ExecObjectType&) const
39  -> decltype(indices.GetCellShape())
40  {
41  return indices.GetCellShape();
42  }
43 
44  template <typename ThreadIndicesType, typename ValueType>
45  VTKM_EXEC void Store(const ThreadIndicesType&, const ExecObjectType&, const ValueType&) const
46  {
47  // Store is a no-op for this fetch.
48  }
49 };
50 }
51 }
52 } // namespace vtkm::exec::arg
53 
54 #endif //vtk_m_exec_arg_FetchTagCellSetIn_h
vtkm::exec::arg::Fetch< vtkm::exec::arg::FetchTagCellSetIn, vtkm::exec::arg::AspectTagDefault, ExecObjectType >::Load
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC auto Load(const ThreadIndicesType &indices, const ExecObjectType &) const -> decltype(indices.GetCellShape())
Definition: FetchTagCellSetIn.h:38
VTKM_EXEC
#define VTKM_EXEC
Definition: ExportMacros.h:51
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::exec::arg::FetchTagCellSetIn
Fetch tag for getting topology information.
Definition: FetchTagCellSetIn.h:29
vtkm::exec::arg::Fetch::ValueType
typename ExecObjectType::ValueType ValueType
The type of value to load and store.
Definition: Fetch.h:58
vtkm::exec::arg::Fetch
Class for loading and storing values in thread instance.
Definition: Fetch.h:49
Fetch.h
AspectTagDefault.h
vtkm::exec::arg::AspectTagDefault
Aspect tag to use for default load/store of data.
Definition: AspectTagDefault.h:22
vtkm::exec::arg::Fetch< vtkm::exec::arg::FetchTagCellSetIn, vtkm::exec::arg::AspectTagDefault, ExecObjectType >::Store
VTKM_EXEC void Store(const ThreadIndicesType &, const ExecObjectType &, const ValueType &) const
Definition: FetchTagCellSetIn.h:45
VTKM_SUPPRESS_EXEC_WARNINGS
#define VTKM_SUPPRESS_EXEC_WARNINGS
Definition: ExportMacros.h:53