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
13class Hook final
14{
15public:
20 Hook() = default;
21
29 {
30 }
31
32 [[nodiscard]] std::shared_ptr<HookImpl> const&
33 impl() const
34 {
35 return impl_;
36 }
37
38private:
40};
41
42} // namespace beast::insight
Hook(std::shared_ptr< HookImpl > impl)
Create a hook referencing the specified implementation.
Definition Hook.h:28
Hook()=default
Create a null hook.
std::shared_ptr< HookImpl > const & impl() const
Definition Hook.h:33
std::shared_ptr< HookImpl > impl_
Definition Hook.h:39
STL namespace.