MySQL 8.4.3
Source Code Documentation
|
A smart-pointer for managing an SPI_lru_cache even when it is only forward declared. More...
#include <dictionary_client.h>
Public Member Functions | |
~SPI_lru_cache_owner_ptr () | |
Calls delete on m_spi_lru_cache unless nullptr. More... | |
SPI_lru_cache * | operator-> () |
Creates cache on demand if m_spi_lru_cache is nullptr. More... | |
const SPI_lru_cache * | operator-> () const |
Const overload which does not create cache on demand, but merely returns the pointer. More... | |
bool | is_nullptr () const |
Private Attributes | |
SPI_lru_cache * | m_spi_lru_cache = nullptr |
A smart-pointer for managing an SPI_lru_cache even when it is only forward declared.
Automatically allocated cache with new, and assigns m_spi_lru_cache to it, when dereferenced using non-const operator->(). Destructor deletes the object pointed to by m_spi_lru_cache.
dd::cache::SPI_lru_cache_owner_ptr::~SPI_lru_cache_owner_ptr | ( | ) |
Calls delete on m_spi_lru_cache unless nullptr.
|
inline |
SPI_lru_cache * dd::cache::SPI_lru_cache_owner_ptr::operator-> | ( | ) |
Creates cache on demand if m_spi_lru_cache is nullptr.
|
inline |
Const overload which does not create cache on demand, but merely returns the pointer.
|
private |