Viskores  1.0
FetchTagWholeCellSetIn.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_exec_arg_FetchTagWholeCellSetIn_h
19 #define viskores_exec_arg_FetchTagWholeCellSetIn_h
20 
23 
24 #include <type_traits>
25 
26 namespace viskores
27 {
28 namespace exec
29 {
30 namespace arg
31 {
32 
37 {
38 };
39 
40 template <typename ExecObjectType>
43  ExecObjectType>
44 {
45  using ValueType = ExecObjectType;
46 
48  template <typename ThreadIndicesType>
49  VISKORES_EXEC ValueType Load(const ThreadIndicesType& viskoresNotUsed(indices),
50  const ExecObjectType& execObject) const
51  {
52  return execObject;
53  }
54 
55  template <typename ThreadIndicesType>
56  VISKORES_EXEC void Store(const ThreadIndicesType&, const ExecObjectType&, const ValueType&) const
57  {
58  // Store is a no-op for this fetch.
59  }
60 };
61 }
62 }
63 } // namespace viskores::exec::arg
64 
65 #endif //viskores_exec_arg_FetchTagWholeCellSetIn_h
viskores::exec::arg::Fetch< viskores::exec::arg::FetchTagWholeCellSetIn, viskores::exec::arg::AspectTagDefault, ExecObjectType >::Store
void Store(const ThreadIndicesType &, const ExecObjectType &, const ValueType &) const
Definition: FetchTagWholeCellSetIn.h:56
viskoresNotUsed
#define viskoresNotUsed(parameter_name)
Simple macro to identify a parameter as unused.
Definition: ExportMacros.h:136
VISKORES_SUPPRESS_EXEC_WARNINGS
#define VISKORES_SUPPRESS_EXEC_WARNINGS
Definition: ExportMacros.h:61
viskores::exec::arg::Fetch< viskores::exec::arg::FetchTagWholeCellSetIn, viskores::exec::arg::AspectTagDefault, ExecObjectType >::Load
ValueType Load(const ThreadIndicesType &, const ExecObjectType &execObject) const
Definition: FetchTagWholeCellSetIn.h:49
viskores::exec::arg::Fetch
Class for loading and storing values in thread instance.
Definition: Fetch.h:57
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
Fetch.h
AspectTagDefault.h
viskores::exec::arg::Fetch< viskores::exec::arg::FetchTagWholeCellSetIn, viskores::exec::arg::AspectTagDefault, ExecObjectType >::ValueType
ExecObjectType ValueType
Definition: FetchTagWholeCellSetIn.h:45
viskores::exec::arg::AspectTagDefault
Aspect tag to use for default load/store of data.
Definition: AspectTagDefault.h:30
viskores::exec::arg::FetchTagWholeCellSetIn
Fetch tag for whole cell sets.
Definition: FetchTagWholeCellSetIn.h:36
VISKORES_EXEC
#define VISKORES_EXEC
Definition: ExportMacros.h:59