Viskores  1.0
MaskNone.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_worklet_MaskNone_h
19 #define viskores_worklet_MaskNone_h
20 
23 
24 namespace viskores
25 {
26 namespace worklet
27 {
28 
35 struct MaskNone : public internal::MaskBase
36 {
37  template <typename RangeType>
38  VISKORES_CONT RangeType GetThreadRange(RangeType outputRange) const
39  {
40  return outputRange;
41  }
42 
44 
46  {
47  return viskores::cont::ArrayHandleIndex(outputRange);
48  }
49 
51  {
52  return this->GetThreadToOutputMap(outputRange[0] * outputRange[1] * outputRange[2]);
53  }
54 };
55 }
56 } // namespace viskores::worklet
57 
58 #endif //viskores_worklet_MaskNone_h
MaskBase.h
viskores::worklet::MaskNone::GetThreadToOutputMap
ThreadToOutputMapType GetThreadToOutputMap(viskores::Id outputRange) const
Definition: MaskNone.h:45
viskores::worklet::MaskNone::GetThreadToOutputMap
ThreadToOutputMapType GetThreadToOutputMap(const viskores::Id3 &outputRange) const
Definition: MaskNone.h:50
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
ArrayHandleIndex.h
viskores::worklet::MaskNone
Default mask object that does not suppress anything.
Definition: MaskNone.h:35
viskores::worklet::MaskNone::GetThreadRange
RangeType GetThreadRange(RangeType outputRange) const
Definition: MaskNone.h:38
viskores::Vec< viskores::Id, 3 >
viskores::cont::ArrayHandleIndex
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:64