MySQL 9.1.0
Source Code Documentation
Callback Class Reference

Class that stores callback function reference as well as the result of the callback function call (invoke method). More...

Public Member Functions

 Callback (std::function< bool(st_mysql_keyring *keyring)> callback)
 Constructor. More...
 
void invoke (st_mysql_keyring *keyring)
 Invoke the underlying callback using the specified parameter and store the result of the operation. More...
 
bool result () const
 Result of the invoke operation. More...
 

Private Attributes

const std::function< bool(st_mysql_keyring *keyring)> m_callback
 Callback function. More...
 
bool m_result
 Result of the _callback function call. More...
 

Detailed Description

Class that stores callback function reference as well as the result of the callback function call (invoke method).

Callback is called using the plugin descriptor pointer, so the callback can call plugin exposed function.

Constructor & Destructor Documentation

◆ Callback()

Callback::Callback ( std::function< bool(st_mysql_keyring *keyring)>  callback)
inlineexplicit

Constructor.

Parameters
callbackLambda function that is called using the invoke method.

Member Function Documentation

◆ invoke()

void Callback::invoke ( st_mysql_keyring keyring)
inline

Invoke the underlying callback using the specified parameter and store the result of the operation.

Parameters
keyringKeyring plugin descriptor pointer.

◆ result()

bool Callback::result ( ) const
inline

Result of the invoke operation.

Returns
Result of the invoke operation.

Member Data Documentation

◆ m_callback

const std::function<bool(st_mysql_keyring *keyring)> Callback::m_callback
private

Callback function.

◆ m_result

bool Callback::m_result
private

Result of the _callback function call.


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