LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::Errata::SinkWrapper Struct Reference

Convenience wrapper class to enable using functions directly for sinks. More...

#include <Errata.h>

Inheritance diagram for swoc::Errata::SinkWrapper:
Inheritance graph
Collaboration diagram for swoc::Errata::SinkWrapper:
Collaboration graph

Public Member Functions

 SinkWrapper (SinkHandler const &f)
 Constructor.
 
 SinkWrapper (SinkHandler &&f)
 
void operator() (Errata const &e) const override
 Operator to invoke the function.
 
- Public Member Functions inherited from swoc::Errata::Sink
virtual ~Sink ()
 Force virtual destructor.
 

Public Attributes

SinkHandler _f
 Client supplied handler.
 

Additional Inherited Members

- Public Types inherited from swoc::Errata::Sink
using Handle = std::shared_ptr<self_type>
 Handle type.
 

Detailed Description

Convenience wrapper class to enable using functions directly for sinks.

Definition at line 649 of file Errata.h.

Constructor & Destructor Documentation

◆ SinkWrapper() [1/2]

swoc::Errata::SinkWrapper::SinkWrapper ( SinkHandler const & f)
inline

Constructor.

Definition at line 651 of file Errata.h.

◆ SinkWrapper() [2/2]

swoc::Errata::SinkWrapper::SinkWrapper ( SinkHandler && f)
inline

Definition at line 652 of file Errata.h.

Member Function Documentation

◆ operator()()

void swoc::Errata::SinkWrapper::operator() ( Errata const & e) const
inlineoverridevirtual

Operator to invoke the function.

Implements swoc::Errata::Sink.

Definition at line 1308 of file Errata.h.

Member Data Documentation

◆ _f

SinkHandler swoc::Errata::SinkWrapper::_f

Client supplied handler.

Definition at line 655 of file Errata.h.


The documentation for this struct was generated from the following file: