rippled
Loading...
Searching...
No Matches
include
xrpl
beast
insight
Hook.h
1
#ifndef BEAST_INSIGHT_HOOK_H_INCLUDED
2
#define BEAST_INSIGHT_HOOK_H_INCLUDED
3
4
#include <xrpl/beast/insight/HookImpl.h>
5
6
#include <
memory
>
7
8
namespace
beast
{
9
namespace
insight {
10
12
class
Hook
final
13
{
14
public
:
18
Hook
()
19
{
20
}
21
27
explicit
Hook
(
std::shared_ptr<HookImpl>
const
&
impl
) :
m_impl
(
impl
)
28
{
29
}
30
31
std::shared_ptr<HookImpl>
const
&
32
impl
()
const
33
{
34
return
m_impl
;
35
}
36
37
private
:
38
std::shared_ptr<HookImpl>
m_impl
;
39
};
40
41
}
// namespace insight
42
}
// namespace beast
43
44
#endif
beast::insight::Hook
A reference to a handler for performing polled collection.
Definition
Hook.h:13
beast::insight::Hook::impl
std::shared_ptr< HookImpl > const & impl() const
Definition
Hook.h:32
beast::insight::Hook::Hook
Hook()
Create a null hook.
Definition
Hook.h:18
beast::insight::Hook::Hook
Hook(std::shared_ptr< HookImpl > const &impl)
Create a hook referencing the specified implementation.
Definition
Hook.h:27
beast::insight::Hook::m_impl
std::shared_ptr< HookImpl > m_impl
Definition
Hook.h:38
memory
beast
Definition
base_uint.h:653
std::shared_ptr
Generated by
1.9.8