xrpld
Loading...
Searching...
No Matches
Hook.h
1#pragma once
2
3#include <xrpl/beast/insight/HookImpl.h>
4
5#include <memory>
6#include <utility>
7
8namespace beast::insight {
9
11class Hook final
12{
13public:
17 Hook() = default;
18
25 {
26 }
27
28 [[nodiscard]] std::shared_ptr<HookImpl> const&
29 impl() const
30 {
31 return impl_;
32 }
33
34private:
36};
37
38} // namespace beast::insight
Hook(std::shared_ptr< HookImpl > impl)
Create a hook referencing the specified implementation.
Definition Hook.h:24
Hook()=default
Create a null hook.
std::shared_ptr< HookImpl > const & impl() const
Definition Hook.h:29
std::shared_ptr< HookImpl > impl_
Definition Hook.h:35
STL namespace.