Viskores  1.0
IndexTag.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_internal_StaticIndex_h
19 #define viskores_internal_StaticIndex_h
20 
21 #include <viskores/Types.h>
22 
23 namespace viskores
24 {
25 namespace internal
26 {
27 
37 template <viskores::IdComponent Index>
38 struct IndexTag
39 {
40  static constexpr viskores::IdComponent INDEX = Index;
41 };
42 }
43 } // namespace viskores::internal
44 
45 #endif //viskores_internal_StaticIndex_h
Types.h
viskores::IdComponent
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
Index
int Index
Definition: ChooseCudaDevice.h:95