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
11
class
Hook
final
12
{
13
public
:
17
Hook
() =
default
;
18
24
explicit
Hook
(
std::shared_ptr<HookImpl>
impl
) :
impl_
(
std
::move(
impl
))
25
{
26
}
27
28
[[nodiscard]]
std::shared_ptr<HookImpl>
const
&
29
impl
()
const
30
{
31
return
impl_
;
32
}
33
34
private
:
35
std::shared_ptr<HookImpl>
impl_
;
36
};
37
38
}
// namespace beast::insight
beast::insight::Hook::Hook
Hook(std::shared_ptr< HookImpl > impl)
Create a hook referencing the specified implementation.
Definition
Hook.h:24
beast::insight::Hook::Hook
Hook()=default
Create a null hook.
beast::insight::Hook::impl
std::shared_ptr< HookImpl > const & impl() const
Definition
Hook.h:29
beast::insight::Hook::impl_
std::shared_ptr< HookImpl > impl_
Definition
Hook.h:35
memory
beast::insight
Definition
Collector.h:11
std
STL namespace.
std::shared_ptr
utility
Generated by
1.16.1