MySQL 8.4.2
Source Code Documentation
Ed_result_set Class Referencefinal

Ed_result_set – a container with result set rows. More...

#include <protocol_local.h>

Public Member Functions

 operator List< Ed_row > & ()
 
unsigned int size () const
 
Ed_rowget_fields ()
 
 Ed_result_set (List< Ed_row > *rows_arg, Ed_row *fields, size_t column_count, MEM_ROOT *mem_root_arg)
 Initialize an instance of Ed_result_set. More...
 
 ~Ed_result_set ()=default
 We don't call member destructors, they all are POD types. More...
 
size_t get_field_count () const
 

Static Public Member Functions

static void * operator new (size_t size, MEM_ROOT *mem_root, const std::nothrow_t &=std::nothrow) noexcept
 
static void operator delete (void *, size_t) noexcept
 
static void operator delete (void *, MEM_ROOT *, const std::nothrow_t &) noexcept
 

Private Member Functions

 Ed_result_set (const Ed_result_set &)
 
Ed_result_setoperator= (Ed_result_set &)
 

Private Attributes

MEM_ROOT m_mem_root
 
size_t m_column_count
 
List< Ed_row > * m_rows
 
Ed_rowm_fields
 
Ed_result_setm_next_rset
 

Friends

class Ed_connection
 

Detailed Description

Ed_result_set – a container with result set rows.

Constructor & Destructor Documentation

◆ Ed_result_set() [1/2]

Ed_result_set::Ed_result_set ( List< Ed_row > *  rows_arg,
Ed_row fields,
size_t  column_count_arg,
MEM_ROOT mem_root_arg 
)

Initialize an instance of Ed_result_set.

Instances of the class, as well as all result set rows, are always allocated in the memory root passed over as the third argument. In the constructor, we take over ownership of the memory root. It will be freed when the class is destroyed.

sic: Ed_result_est is not designed to be allocated on stack.

◆ ~Ed_result_set()

Ed_result_set::~Ed_result_set ( )
default

We don't call member destructors, they all are POD types.

◆ Ed_result_set() [2/2]

Ed_result_set::Ed_result_set ( const Ed_result_set )
private

Member Function Documentation

◆ get_field_count()

size_t Ed_result_set::get_field_count ( ) const
inline

◆ get_fields()

Ed_row * Ed_result_set::get_fields ( )
inline

◆ operator delete() [1/2]

static void Ed_result_set::operator delete ( void *  ,
MEM_ROOT ,
const std::nothrow_t &   
)
inlinestaticnoexcept

◆ operator delete() [2/2]

static void Ed_result_set::operator delete ( void *  ,
size_t   
)
inlinestaticnoexcept

◆ operator List< Ed_row > &()

Ed_result_set::operator List< Ed_row > & ( )
inline

◆ operator new()

static void * Ed_result_set::operator new ( size_t  size,
MEM_ROOT mem_root,
const std::nothrow_t &  = std::nothrow 
)
inlinestaticnoexcept

◆ operator=()

Ed_result_set & Ed_result_set::operator= ( Ed_result_set )
private

◆ size()

unsigned int Ed_result_set::size ( ) const
inline

Friends And Related Function Documentation

◆ Ed_connection

friend class Ed_connection
friend

Member Data Documentation

◆ m_column_count

size_t Ed_result_set::m_column_count
private

◆ m_fields

Ed_row* Ed_result_set::m_fields
private

◆ m_mem_root

MEM_ROOT Ed_result_set::m_mem_root
private

◆ m_next_rset

Ed_result_set* Ed_result_set::m_next_rset
private

◆ m_rows

List<Ed_row>* Ed_result_set::m_rows
private

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