Viskores  1.0
ThreadIndicesBasic3D.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_ThreadIndicesBasic3D_h
19 #define viskores_exec_arg_ThreadIndicesBasic3D_h
20 
22 
23 namespace viskores
24 {
25 namespace exec
26 {
27 namespace arg
28 {
29 
40 {
41 public:
43  ThreadIndicesBasic3D(const viskores::Id3& threadIndex3D,
44  viskores::Id threadIndex1D,
45  viskores::Id inIndex,
46  viskores::IdComponent visitIndex,
47  viskores::Id outIndex)
48  : ThreadIndicesBasic(threadIndex1D, inIndex, visitIndex, outIndex)
49  , ThreadIndex3D(threadIndex3D)
50  {
51  }
52 
62  viskores::Id3 GetInputIndex3D() const { return this->ThreadIndex3D; }
63 
64 private:
66 };
67 }
68 }
69 } // namespace viskores::exec::arg
70 
71 #endif //viskores_exec_arg_ThreadIndicesBasic3D_h
viskores::exec::arg::ThreadIndicesBasic3D::ThreadIndex3D
viskores::Id3 ThreadIndex3D
Definition: ThreadIndicesBasic3D.h:65
ThreadIndicesBasic.h
viskores::exec::arg::ThreadIndicesBasic3D::ThreadIndicesBasic3D
ThreadIndicesBasic3D(const viskores::Id3 &threadIndex3D, viskores::Id threadIndex1D, viskores::Id inIndex, viskores::IdComponent visitIndex, viskores::Id outIndex)
Definition: ThreadIndicesBasic3D.h:43
viskores::IdComponent
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
viskores::exec::arg::ThreadIndicesBasic
Basic container for thread indices in a worklet invocation.
Definition: ThreadIndicesBasic.h:43
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::exec::arg::ThreadIndicesBasic3D::GetInputIndex3D
viskores::Id3 GetInputIndex3D() const
The 3D index into the input domain.
Definition: ThreadIndicesBasic3D.h:62
viskores::exec::arg::ThreadIndicesBasic3D
Container for 3D thread indices in a worklet invocation.
Definition: ThreadIndicesBasic3D.h:39
viskores::Vec< viskores::Id, 3 >
VISKORES_EXEC
#define VISKORES_EXEC
Definition: ExportMacros.h:59