VTK-m  2.2
Transport.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_arg_Transport_h
11 #define vtk_m_cont_arg_Transport_h
12 
13 namespace vtkm
14 {
15 namespace cont
16 {
17 namespace arg
18 {
19 
37 template <typename TransportTag, typename ContObjectType, typename DeviceAdapterTag>
38 struct Transport
39 #ifdef VTKM_DOXYGEN_ONLY
40 {
48  using ExecObjectType = typename ContObjectType::ReadPortalType;
49 
61  template <typename InputDomainType>
62  VTKM_CONT ExecObjectType operator()(const ContObjectType contData,
63  const InputDomainType& inputDomain vtkm::Id outputSize) const;
64 };
65 #else // VTKM_DOXYGEN_ONLY
66  ;
67 #endif // VTKM_DOXYGEN_ONLY
68 }
69 }
70 } // namespace vtkm::cont::arg
71 
72 #endif //vtk_m_cont_arg_Transport_h
vtkm::cont::arg::Transport::ExecObjectType
typename ContObjectType::ReadPortalType ExecObjectType
The type used in the execution environment.
Definition: Transport.h:48
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::cont::arg::Transport
Class for transporting from the control to the execution environment.
Definition: Transport.h:38
vtkm::cont::arg::Transport::operator()
VTKM_CONT ExecObjectType operator()(const ContObjectType contData, const InputDomainType &inputDomain vtkm::Id outputSize) const
Send data to the execution environment.