Viskores  1.0
Transport.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_cont_arg_Transport_h
19 #define viskores_cont_arg_Transport_h
20 
21 namespace viskores
22 {
23 namespace cont
24 {
25 namespace arg
26 {
27 
45 template <typename TransportTag, typename ContObjectType, typename DeviceAdapterTag>
46 struct Transport
47 #ifdef VISKORES_DOXYGEN_ONLY
48 {
56  using ExecObjectType = typename ContObjectType::ReadPortalType;
57 
69  template <typename InputDomainType>
71  operator()(const ContObjectType contData,
72  const InputDomainType& inputDomain viskores::Id outputSize) const;
73 };
74 #else // VISKORES_DOXYGEN_ONLY
75  ;
76 #endif // VISKORES_DOXYGEN_ONLY
77 }
78 }
79 } // namespace viskores::cont::arg
80 
81 #endif //viskores_cont_arg_Transport_h
viskores::cont::arg::Transport
Class for transporting from the control to the execution environment.
Definition: Transport.h:46
viskores::cont::arg::Transport::ExecObjectType
typename ContObjectType::ReadPortalType ExecObjectType
The type used in the execution environment.
Definition: Transport.h:56
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
viskores::cont::arg::Transport::operator()
VISKORES_CONT ExecObjectType operator()(const ContObjectType contData, const InputDomainType &inputDomain viskores::Id outputSize) const
Send data to the execution environment.