rippled
Public Member Functions | Private Attributes | List of all members
beast::insight::Hook Class Referencefinal

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

Collaboration diagram for beast::insight::Hook:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

std::shared_ptr< HookImplm_impl
 

Detailed Description

A reference to a handler for performing polled collection.

Definition at line 31 of file Hook.h.

Constructor & Destructor Documentation

◆ Hook() [1/2]

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

Create a null hook.

A null hook has no associated handler.

Definition at line 37 of file Hook.h.

◆ Hook() [2/2]

beast::insight::Hook::Hook ( std::shared_ptr< HookImpl > const &  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 46 of file Hook.h.

Member Function Documentation

◆ impl()

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

Definition at line 51 of file Hook.h.

Member Data Documentation

◆ m_impl

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

Definition at line 57 of file Hook.h.