ATLAS Offline Software
Loading...
Searching...
No Matches
HostCopyTool.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4#ifndef ATHDEVICECOMPS_HOSTCOPYTOOL_H
5#define ATHDEVICECOMPS_HOSTCOPYTOOL_H
6
7// Framework include(s).
9
10// AthDevice include(s).
12
13namespace AthDevice {
14
16class HostCopyTool : public extends<AthAlgTool, ICopyTool> {
17
18 public:
19 // Inherit the base class's constructor(s).
20 using extends::extends;
21
24
26 virtual std::shared_ptr<const vecmem::copy> copy(
27 const EventContext& ctx) const override;
28
30
31 private:
33 std::shared_ptr<const vecmem::copy> m_copy{
34 std::make_shared<const vecmem::copy>()};
35
36}; // class HostCopyTool
37
38} // namespace AthDevice
39
40#endif // ATHDEVICECOMPS_HOSTCOPYTOOL_H
Tool providing a basic, host-side vecmem::copy object.
std::shared_ptr< const vecmem::copy > m_copy
The vecmem::copy object provided by this tool.
virtual std::shared_ptr< const vecmem::copy > copy(const EventContext &ctx) const override
Get the provided vecmem::copy object.