MySQL 9.0.0
Source Code Documentation
Table_cache_iterator Class Reference

Iterator which allows to go through all used TABLE instances for the table in all table caches. More...

#include <table_cache.h>

Public Member Functions

 Table_cache_iterator (const TABLE_SHARE *share_arg)
 Construct iterator over all used TABLE objects for the table share. More...
 
TABLEoperator++ (int)
 Get current used TABLE instance and move iterator to the next one. More...
 
void rewind ()
 

Private Member Functions

void move_to_next_table ()
 Helper that moves iterator to the next used TABLE for the table share. More...
 

Private Attributes

const TABLE_SHAREshare
 
uint current_cache_index
 
TABLEcurrent_table
 

Detailed Description

Iterator which allows to go through all used TABLE instances for the table in all table caches.

Constructor & Destructor Documentation

◆ Table_cache_iterator()

Table_cache_iterator::Table_cache_iterator ( const TABLE_SHARE share_arg)
inline

Construct iterator over all used TABLE objects for the table share.

Note
Assumes that caller owns locks on all table caches.

Member Function Documentation

◆ move_to_next_table()

void Table_cache_iterator::move_to_next_table ( )
inlineprivate

Helper that moves iterator to the next used TABLE for the table share.

◆ operator++()

TABLE * Table_cache_iterator::operator++ ( int  )
inline

Get current used TABLE instance and move iterator to the next one.

Note
Assumes that caller owns locks on all table caches.

◆ rewind()

void Table_cache_iterator::rewind ( void  )
inline

Member Data Documentation

◆ current_cache_index

uint Table_cache_iterator::current_cache_index
private

◆ current_table

TABLE* Table_cache_iterator::current_table
private

◆ share

const TABLE_SHARE* Table_cache_iterator::share
private

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