![]() |
ATLAS Offline Software
|
Tool exposing a memory resource service as a memory resource tool. More...
#include <MemoryResourceSvcAdaptorTool.h>
Public Member Functions | |
Function(s) inherited from @c AthAlgTool | |
| virtual StatusCode | initialize () override |
| Initialize the tool. | |
Function(s) inherited from @c IMemoryResourceTool | |
| virtual std::pmr::memory_resource & | mr () const override |
Get the provided std::pmr::memory_resource object. | |
Private Attributes | |
| ServiceHandle< IMemoryResourceSvc > | m_mrSvc |
| Handle to the service providing the underlying memory resource. | |
Tool exposing a memory resource service as a memory resource tool.
Client components should ideally only use memory resources through the AthDevice::IMemoryResourceTool interface. But especially caching memory resources are best implemented as a service.
This tool allows us to expose such services with a tool interface.
Definition at line 25 of file MemoryResourceSvcAdaptorTool.h.
|
overridevirtual |
Initialize the tool.
Definition at line 13 of file MemoryResourceSvcAdaptorTool.cxx.
|
overridevirtual |
Get the provided std::pmr::memory_resource object.
Definition at line 22 of file MemoryResourceSvcAdaptorTool.cxx.
|
private |
Handle to the service providing the underlying memory resource.
Definition at line 50 of file MemoryResourceSvcAdaptorTool.h.