xrpld
Loading...
Searching...
No Matches
include
xrpl
beast
insight
Hook.h
1
#pragma once
2
3
#include <xrpl/beast/insight/HookImpl.h>
4
5
#include <
memory
>
6
#include <
utility
>
7
8
namespace
beast::insight
{
9
13
class
Hook
final
14
{
15
public
:
20
Hook
() =
default
;
21
28
explicit
Hook
(
std::shared_ptr<HookImpl>
impl
) :
impl_
(
std
::move(
impl
))
29
{
30
}
31
32
[[nodiscard]]
std::shared_ptr<HookImpl>
const
&
33
impl
()
const
34
{
35
return
impl_
;
36
}
37
38
private
:
39
std::shared_ptr<HookImpl>
impl_
;
40
};
41
42
}
// namespace beast::insight
beast::insight::Hook::Hook
Hook(std::shared_ptr< HookImpl > impl)
Create a hook referencing the specified implementation.
Definition
Hook.h:28
beast::insight::Hook::Hook
Hook()=default
Create a null hook.
beast::insight::Hook::impl
std::shared_ptr< HookImpl > const & impl() const
Definition
Hook.h:33
beast::insight::Hook::impl_
std::shared_ptr< HookImpl > impl_
Definition
Hook.h:39
memory
beast::insight
Definition
Collector.h:13
std
STL namespace.
std::shared_ptr
utility
Generated by
1.16.1