xrpld
Loading...
Searching...
No Matches
beast::insight::Hook Class Referencefinal

A reference to a handler for performing polled collection. More...

#include <Hook.h>

Collaboration diagram for beast::insight::Hook:

Public Member Functions

 Hook ()=default
 Create a null hook.
 Hook (std::shared_ptr< HookImpl > impl)
 Create a hook referencing the specified implementation.
std::shared_ptr< HookImpl > const & impl () const

Private Attributes

std::shared_ptr< HookImplimpl_

Detailed Description

A reference to a handler for performing polled collection.

Definition at line 11 of file Hook.h.

Constructor & Destructor Documentation

◆ Hook() [1/2]

beast::insight::Hook::Hook ( )
default

Create a null hook.

A null hook has no associated handler.

◆ Hook() [2/2]

beast::insight::Hook::Hook ( std::shared_ptr< HookImpl > impl)
explicit

Create a hook referencing the specified implementation.

Normally this won't be called directly. Instead, call the appropriate factory function in the Collector interface.

See also
Collector.

Definition at line 24 of file Hook.h.

Member Function Documentation

◆ impl()

std::shared_ptr< HookImpl > const & beast::insight::Hook::impl ( ) const
nodiscard

Definition at line 29 of file Hook.h.

Member Data Documentation

◆ impl_

std::shared_ptr<HookImpl> beast::insight::Hook::impl_
private

Definition at line 35 of file Hook.h.