MySQL 9.1.0
Source Code Documentation
Table_map_restorer Class Referencefinal

This class restores a table_map object to its original value when '*this' is destroyed. More...

#include <sql_optimizer.h>

Public Member Functions

 Table_map_restorer (table_map *map)
 Constructor. More...
 
 Table_map_restorer (const Table_map_restorer &)=delete
 
Table_map_restoreroperator= (const Table_map_restorer &)=delete
 
 ~Table_map_restorer ()
 
void restore ()
 
void assert_unchanged () const
 

Private Attributes

table_map *const m_location
 The location to be restored. More...
 
const table_map m_saved_value
 The original value to restore. More...
 

Detailed Description

This class restores a table_map object to its original value when '*this' is destroyed.

Constructor & Destructor Documentation

◆ Table_map_restorer() [1/2]

Table_map_restorer::Table_map_restorer ( table_map map)
inlineexplicit

Constructor.

Parameters
mapThe table map that we wish to restore.

◆ Table_map_restorer() [2/2]

Table_map_restorer::Table_map_restorer ( const Table_map_restorer )
delete

◆ ~Table_map_restorer()

Table_map_restorer::~Table_map_restorer ( )
inline

Member Function Documentation

◆ assert_unchanged()

void Table_map_restorer::assert_unchanged ( ) const
inline

◆ operator=()

Table_map_restorer & Table_map_restorer::operator= ( const Table_map_restorer )
delete

◆ restore()

void Table_map_restorer::restore ( )
inline

Member Data Documentation

◆ m_location

table_map* const Table_map_restorer::m_location
private

The location to be restored.

◆ m_saved_value

const table_map Table_map_restorer::m_saved_value
private

The original value to restore.


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