MySQL 9.1.0
Source Code Documentation
OrderingElementsGuard Class Referencefinal

A scope-guard class for allocating an Ordering::Elements instance which is automatically returned to the pool when we exit the scope of the OrderingElementsGuard instance. More...

Public Member Functions

 OrderingElementsGuard (LogicalOrderings *context, MEM_ROOT *mem_root)
 
 OrderingElementsGuard (const OrderingElementsGuard &)=delete
 
OrderingElementsGuardoperator= (const OrderingElementsGuard &)=delete
 
 ~OrderingElementsGuard ()
 
Ordering::ElementsGet ()
 

Private Attributes

LogicalOrderingsm_context
 The object containing the pool. More...
 
Ordering::Elements m_elements
 The instance fetched from the pool. More...
 

Detailed Description

A scope-guard class for allocating an Ordering::Elements instance which is automatically returned to the pool when we exit the scope of the OrderingElementsGuard instance.

Constructor & Destructor Documentation

◆ OrderingElementsGuard() [1/2]

OrderingElementsGuard::OrderingElementsGuard ( LogicalOrderings context,
MEM_ROOT mem_root 
)
inline
Parameters
contextThe object containing the pool.
mem_rootFor allocating additional Ordering::Elements instances if needed.

◆ OrderingElementsGuard() [2/2]

OrderingElementsGuard::OrderingElementsGuard ( const OrderingElementsGuard )
delete

◆ ~OrderingElementsGuard()

OrderingElementsGuard::~OrderingElementsGuard ( )
inline

Member Function Documentation

◆ Get()

Ordering::Elements & OrderingElementsGuard::Get ( )
inline

◆ operator=()

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

Member Data Documentation

◆ m_context

LogicalOrderings* OrderingElementsGuard::m_context
private

The object containing the pool.

◆ m_elements

Ordering::Elements OrderingElementsGuard::m_elements
private

The instance fetched from the pool.


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