MySQL 8.3.0
Source Code Documentation
Double_write::Buf_pages Struct Reference

For collecting pages to write. More...

Public Types

typedef std::tuple< buf_page_t *, const file::Block * > Dblwr_tuple
 
using Pages = std::vector< Dblwr_tuple, ut::allocator< Dblwr_tuple > >
 

Public Member Functions

 Buf_pages (uint32_t size)
 Constructor. More...
 
void push_back (buf_page_t *bpage, const file::Block *e_block) noexcept
 Add a page to the collection. More...
 
void clear () noexcept
 Clear the collection. More...
 
bool empty () const noexcept
 
uint32_t size () const noexcept
 
uint32_t capacity () const noexcept
 

Public Attributes

Pages m_pages {}
 Collection of pages. More...
 
uint32_t m_size {}
 Number of live elements. More...
 

Detailed Description

For collecting pages to write.

Member Typedef Documentation

◆ Dblwr_tuple

◆ Pages

Constructor & Destructor Documentation

◆ Buf_pages()

Double_write::Buf_pages::Buf_pages ( uint32_t  size)
inlineexplicit

Constructor.

Parameters
[in]sizeNumber of pages to reserve.

Member Function Documentation

◆ capacity()

uint32_t Double_write::Buf_pages::capacity ( ) const
inlinenoexcept
Returns
the capacity of the collection.

◆ clear()

void Double_write::Buf_pages::clear ( )
inlinenoexcept

Clear the collection.

◆ empty()

bool Double_write::Buf_pages::empty ( ) const
inlinenoexcept
Returns
check if collection is empty.

◆ push_back()

void Double_write::Buf_pages::push_back ( buf_page_t bpage,
const file::Block e_block 
)
inlinenoexcept

Add a page to the collection.

Parameters
[in]bpagePage to write.
[in]e_blockencrypted block.

◆ size()

uint32_t Double_write::Buf_pages::size ( ) const
inlinenoexcept
Returns
number of active elements.

Member Data Documentation

◆ m_pages

Pages Double_write::Buf_pages::m_pages {}

Collection of pages.

◆ m_size

uint32_t Double_write::Buf_pages::m_size {}

Number of live elements.


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