MySQL 9.1.0
Source Code Documentation
keyring_proxy::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()

keyring_proxy::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 keyring_proxy::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 keyring_proxy::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)> keyring_proxy::Callback::m_callback
private

Callback function.

◆ m_result

bool keyring_proxy::Callback::m_result
private

Result of the _callback function call.


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