MySQL 9.1.0
Source Code Documentation
global_variable_attributes_iterator_internal Class Reference

Public Member Functions

bool init (const char *variable_base, const char *variable_name, const char *attribute_name)
 Create global system variable attributes iterator. More...
 
bool next ()
 Advance iterator to next element. More...
 
std::pair< std::string, std::string > * get_current ()
 Return key/value attribute element currently pointed by the iterator. More...
 

Private Attributes

uint m_idx {0}
 
std::vector< std::pair< std::string, std::string > > m_attributes
 
const char * m_attribute_name {nullptr}
 

Member Function Documentation

◆ get_current()

std::pair< std::string, std::string > * global_variable_attributes_iterator_internal::get_current ( )
inline

Return key/value attribute element currently pointed by the iterator.

Return values
nonNULL : found
NULL: not found

◆ init()

bool global_variable_attributes_iterator_internal::init ( const char *  variable_base,
const char *  variable_name,
const char *  attribute_name 
)
inline

Create global system variable attributes iterator.

Sets the iterator to the first matching element (if any) or at eof.

Parameters
variable_baseVariable prefix, NULL if none.
variable_nameSystem variable name to be matched.
attribute_nameAttribute name to be matched or NULL to iterate all attributes of a variable
Return values
false: found
true: not found or error initializing

◆ next()

bool global_variable_attributes_iterator_internal::next ( )
inline

Advance iterator to next element.

Sets the iterator to the next matching element (if any) or at eof.

Return values
false: found
true: not found

Member Data Documentation

◆ m_attribute_name

const char* global_variable_attributes_iterator_internal::m_attribute_name {nullptr}
private

◆ m_attributes

std::vector<std::pair<std::string, std::string> > global_variable_attributes_iterator_internal::m_attributes
private

◆ m_idx

uint global_variable_attributes_iterator_internal::m_idx {0}
private

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