MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mysql_harness::ScopedCallback Class Reference

#include <scoped_callback.h>

Public Member Functions

 ScopedCallback (std::function< void()> c) noexcept
 
 ScopedCallback ()=default
 
 ScopedCallback (const ScopedCallback &)=delete
 
ScopedCallbackoperator= (const ScopedCallback &)=delete
 
 ScopedCallback (ScopedCallback &&o) noexcept
 
ScopedCallbackoperator= (ScopedCallback &&o) noexcept
 
 ~ScopedCallback () noexcept
 
void call ()
 
void cancel ()
 

Private Attributes

std::function< void()> callback_
 

Constructor & Destructor Documentation

◆ ScopedCallback() [1/4]

mysql_harness::ScopedCallback::ScopedCallback ( std::function< void()>  c)
inlineexplicitnoexcept

◆ ScopedCallback() [2/4]

mysql_harness::ScopedCallback::ScopedCallback ( )
default

◆ ScopedCallback() [3/4]

mysql_harness::ScopedCallback::ScopedCallback ( const ScopedCallback )
delete

◆ ScopedCallback() [4/4]

mysql_harness::ScopedCallback::ScopedCallback ( ScopedCallback &&  o)
inlinenoexcept

◆ ~ScopedCallback()

mysql_harness::ScopedCallback::~ScopedCallback ( )
noexcept

Member Function Documentation

◆ call()

void mysql_harness::ScopedCallback::call ( )
inline

◆ cancel()

void mysql_harness::ScopedCallback::cancel ( )
inline

◆ operator=() [1/2]

ScopedCallback & mysql_harness::ScopedCallback::operator= ( const ScopedCallback )
delete

◆ operator=() [2/2]

ScopedCallback & mysql_harness::ScopedCallback::operator= ( ScopedCallback &&  o)
inlinenoexcept

Member Data Documentation

◆ callback_

std::function<void()> mysql_harness::ScopedCallback::callback_
private

The documentation for this class was generated from the following files: