MySQL 9.1.0
Source Code Documentation
metric_iterator Class Reference

Public Member Functions

bool init (const char *group)
 Create metric sources iterator, iterates metrics within single meter. More...
 
bool next ()
 Advance metric sources iterator to next value. More...
 
PFS_metric_classget_current () const
 

Protected Member Functions

bool next_metric (uint start)
 
bool find_meter (const char *group)
 

Private Attributes

uint m_meter_idx {0}
 
uint m_metric_idx {0}
 

Member Function Documentation

◆ find_meter()

bool metric_iterator::find_meter ( const char *  group)
inlineprotected

◆ get_current()

PFS_metric_class * metric_iterator::get_current ( ) const
inline

◆ init()

bool metric_iterator::init ( const char *  group)
inline

Create metric sources iterator, iterates metrics within single meter.

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

Parameters
groupmeter containing the metrics
Return values
false: found
true: not found or error initializing

◆ next()

bool metric_iterator::next ( void  )
inline

Advance metric sources iterator to next value.

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

Return values
false: found
true: not found

◆ next_metric()

bool metric_iterator::next_metric ( uint  start)
inlineprotected

Member Data Documentation

◆ m_meter_idx

uint metric_iterator::m_meter_idx {0}
private

◆ m_metric_idx

uint metric_iterator::m_metric_idx {0}
private

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