VTK-m  2.0
FetchTagArrayNeighborhoodIn.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_FetchTagArrayNeighborhoodIn_h
11 #define vtk_m_exec_arg_FetchTagArrayNeighborhoodIn_h
12 
15 #include <vtkm/exec/arg/Fetch.h>
17 
18 namespace vtkm
19 {
20 namespace exec
21 {
22 namespace arg
23 {
24 
31 {
32 };
33 
34 template <typename ExecObjectType>
37  ExecObjectType>
38 {
40 
42  template <typename ThreadIndicesType>
43  VTKM_EXEC ValueType Load(const ThreadIndicesType& indices,
44  const ExecObjectType& arrayPortal) const
45  {
46  return ValueType(arrayPortal, indices.GetBoundaryState());
47  }
48 
49  template <typename ThreadIndicesType>
50  VTKM_EXEC void Store(const ThreadIndicesType&, const ExecObjectType&, const ValueType&) const
51  {
52  // Store is a no-op for this fetch.
53  }
54 };
55 }
56 }
57 } // namespace vtkm::exec::arg
58 
59 #endif //vtk_m_exec_arg_FetchTagArrayNeighborhoodIn_h
VTKM_EXEC
#define VTKM_EXEC
Definition: ExportMacros.h:51
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
ThreadIndicesPointNeighborhood.h
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
vtkm::exec::arg::FetchTagArrayNeighborhoodIn
Fetch tag for getting values of neighborhood around a point.
Definition: FetchTagArrayNeighborhoodIn.h:30
Fetch.h
AspectTagDefault.h
FieldNeighborhood.h
vtkm::exec::arg::Fetch< vtkm::exec::arg::FetchTagArrayNeighborhoodIn, vtkm::exec::arg::AspectTagDefault, ExecObjectType >::Load
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC ValueType Load(const ThreadIndicesType &indices, const ExecObjectType &arrayPortal) const
Definition: FetchTagArrayNeighborhoodIn.h:43
vtkm::exec::arg::AspectTagDefault
Aspect tag to use for default load/store of data.
Definition: AspectTagDefault.h:22
VTKM_SUPPRESS_EXEC_WARNINGS
#define VTKM_SUPPRESS_EXEC_WARNINGS
Definition: ExportMacros.h:53
vtkm::exec::arg::Fetch< vtkm::exec::arg::FetchTagArrayNeighborhoodIn, vtkm::exec::arg::AspectTagDefault, ExecObjectType >::Store
VTKM_EXEC void Store(const ThreadIndicesType &, const ExecObjectType &, const ValueType &) const
Definition: FetchTagArrayNeighborhoodIn.h:50
vtkm::exec::FieldNeighborhood
Retrieves field values from a neighborhood.
Definition: FieldNeighborhood.h:36