MySQL 8.0.40
Source Code Documentation
base_ilist< T > Class Template Reference

#include <sql_list.h>

Inheritance diagram for base_ilist< T >:
[legend]

Public Member Functions

void clear () SUPPRESS_UBSAN
 
 base_ilist ()
 
bool is_empty () const SUPPRESS_UBSAN
 
void push_front (T *a)
 Pushes new element in front of list. More...
 
void push_back (T *a)
 Pushes new element to the end of the list, i.e. in front of the sentinel. More...
 
T * get ()
 
T * head ()
 
void move_elements_to (base_ilist *new_owner)
 Moves list elements to new owner, and empties current owner (i.e. More...
 

Private Member Functions

 base_ilist (const base_ilist &)
 
void operator= (const base_ilist &)
 

Private Attributes

T * first
 
ilink< T > sentinel
 

Friends

class base_ilist_iterator< T >
 

Constructor & Destructor Documentation

◆ base_ilist() [1/2]

template<typename T >
base_ilist< T >::base_ilist ( )
inline

◆ base_ilist() [2/2]

template<typename T >
base_ilist< T >::base_ilist ( const base_ilist< T > &  )
private

Member Function Documentation

◆ clear()

template<typename T >
void base_ilist< T >::clear ( )
inline

◆ get()

template<typename T >
T * base_ilist< T >::get ( )
inline

◆ head()

template<typename T >
T * base_ilist< T >::head ( )
inline

◆ is_empty()

template<typename T >
bool base_ilist< T >::is_empty ( void  ) const
inline

◆ move_elements_to()

template<typename T >
void base_ilist< T >::move_elements_to ( base_ilist< T > *  new_owner)
inline

Moves list elements to new owner, and empties current owner (i.e.

this).

Parameters
[in,out]new_ownerThe new owner of the list elements. Should be empty in input.

◆ operator=()

template<typename T >
void base_ilist< T >::operator= ( const base_ilist< T > &  )
private

◆ push_back()

template<typename T >
void base_ilist< T >::push_back ( T *  a)
inline

Pushes new element to the end of the list, i.e. in front of the sentinel.

◆ push_front()

template<typename T >
void base_ilist< T >::push_front ( T *  a)
inline

Pushes new element in front of list.

Friends And Related Function Documentation

◆ base_ilist_iterator< T >

template<typename T >
friend class base_ilist_iterator< T >
friend

Member Data Documentation

◆ first

template<typename T >
T* base_ilist< T >::first
private

◆ sentinel

template<typename T >
ilink<T> base_ilist< T >::sentinel
private

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