MySQL 8.0.39
Source Code Documentation
Queue< T > Class Template Reference

Implements a persistent FIFO using server List method names. More...

#include <sql_profile.h>

Classes

struct  queue_item
 

Public Member Functions

 Queue ()
 
void empty ()
 
void push_back (T *payload)
 
T * pop ()
 
bool is_empty ()
 
void * new_iterator ()
 
void * iterator_next (void *current)
 
T * iterator_value (void *current)
 

Public Attributes

ulong elements
 

Private Attributes

struct queue_itemfirst
 
struct queue_itemlast
 

Detailed Description

template<class T>
class Queue< T >

Implements a persistent FIFO using server List method names.

Not thread-safe. Intended to be used on thread-local data only.

Constructor & Destructor Documentation

◆ Queue()

template<class T >
Queue< T >::Queue ( )
inline

Member Function Documentation

◆ empty()

template<class T >
void Queue< T >::empty ( )
inline

◆ is_empty()

template<class T >
bool Queue< T >::is_empty ( void  )
inline

◆ iterator_next()

template<class T >
void * Queue< T >::iterator_next ( void *  current)
inline

◆ iterator_value()

template<class T >
T * Queue< T >::iterator_value ( void *  current)
inline

◆ new_iterator()

template<class T >
void * Queue< T >::new_iterator ( )
inline

◆ pop()

template<class T >
T * Queue< T >::pop ( void  )
inline

◆ push_back()

template<class T >
void Queue< T >::push_back ( T *  payload)
inline

Member Data Documentation

◆ elements

template<class T >
ulong Queue< T >::elements

◆ first

template<class T >
struct queue_item* Queue< T >::first
private

◆ last

template<class T >
struct queue_item * Queue< T >::last
private

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