rippled
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
7
namespace
beast
{
8
namespace
insight {
9
11
class
Hook
final
12
{
13
public
:
17
Hook
()
18
{
19
}
20
26
explicit
Hook
(
std::shared_ptr<HookImpl>
const
&
impl
) :
m_impl
(
impl
)
27
{
28
}
29
30
std::shared_ptr<HookImpl>
const
&
31
impl
()
const
32
{
33
return
m_impl
;
34
}
35
36
private
:
37
std::shared_ptr<HookImpl>
m_impl
;
38
};
39
40
}
// namespace insight
41
}
// namespace beast
beast::insight::Hook
A reference to a handler for performing polled collection.
Definition
Hook.h:12
beast::insight::Hook::impl
std::shared_ptr< HookImpl > const & impl() const
Definition
Hook.h:31
beast::insight::Hook::Hook
Hook()
Create a null hook.
Definition
Hook.h:17
beast::insight::Hook::Hook
Hook(std::shared_ptr< HookImpl > const &impl)
Create a hook referencing the specified implementation.
Definition
Hook.h:26
beast::insight::Hook::m_impl
std::shared_ptr< HookImpl > m_impl
Definition
Hook.h:37
memory
beast
Definition
base_uint.h:637
std::shared_ptr
Generated by
1.9.8