Viskores  1.0
FetchTagCellSetIn.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_FetchTagCellSetIn_h
19 #define viskores_exec_arg_FetchTagCellSetIn_h
20 
23 
24 namespace viskores
25 {
26 namespace exec
27 {
28 namespace arg
29 {
30 
38 {
39 };
40 
41 template <typename ExecObjectType>
44  ExecObjectType>
45 {
47  template <typename ThreadIndicesType>
48  VISKORES_EXEC auto Load(const ThreadIndicesType& indices, const ExecObjectType&) const
49  -> decltype(indices.GetCellShape())
50  {
51  return indices.GetCellShape();
52  }
53 
54  template <typename ThreadIndicesType, typename ValueType>
55  VISKORES_EXEC void Store(const ThreadIndicesType&, const ExecObjectType&, const ValueType&) const
56  {
57  // Store is a no-op for this fetch.
58  }
59 };
60 }
61 }
62 } // namespace viskores::exec::arg
63 
64 #endif //viskores_exec_arg_FetchTagCellSetIn_h
VISKORES_SUPPRESS_EXEC_WARNINGS
#define VISKORES_SUPPRESS_EXEC_WARNINGS
Definition: ExportMacros.h:61
viskores::exec::arg::FetchTagCellSetIn
Fetch tag for getting topology information.
Definition: FetchTagCellSetIn.h:37
viskores::exec::arg::Fetch::ValueType
typename ExecObjectType::ValueType ValueType
The type of value to load and store.
Definition: Fetch.h:66
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::AspectTagDefault
Aspect tag to use for default load/store of data.
Definition: AspectTagDefault.h:30
viskores::exec::arg::Fetch< viskores::exec::arg::FetchTagCellSetIn, viskores::exec::arg::AspectTagDefault, ExecObjectType >::Load
auto Load(const ThreadIndicesType &indices, const ExecObjectType &) const -> decltype(indices.GetCellShape())
Definition: FetchTagCellSetIn.h:48
VISKORES_EXEC
#define VISKORES_EXEC
Definition: ExportMacros.h:59
viskores::exec::arg::Fetch< viskores::exec::arg::FetchTagCellSetIn, viskores::exec::arg::AspectTagDefault, ExecObjectType >::Store
void Store(const ThreadIndicesType &, const ExecObjectType &, const ValueType &) const
Definition: FetchTagCellSetIn.h:55