MySQL  8.0.12
Source Code Documentation
List< T > Class Template Reference

#include <aggregate_check.h>

Inheritance diagram for List< T >:
base_list

Public Member Functions

 List ()
 
 List (const List< T > &tmp)
 
Listoperator= (const List &tmp)
 
 List (const List< T > &tmp, MEM_ROOT *mem_root)
 
bool push_back (T *a)
 
bool push_back (T *a, MEM_ROOT *mem_root)
 
bool push_front (T *a)
 
bool push_front (T *a, MEM_ROOT *mem_root)
 
T * head ()
 
const T * head () const
 
T ** head_ref ()
 
T * back ()
 
T * pop ()
 
void concat (List< T > *list)
 
void disjoin (List< T > *list)
 
void prepend (List< T > *list)
 
void delete_elements (void)
 
void destroy_elements (void)
 
T * operator[] (uint index) const
 
void replace (uint index, T *new_value)
 
bool swap_elts (uint index1, uint index2)
 
- Public Member Functions inherited from base_list
bool operator== (const base_list &rhs) const
 
void empty ()
 
 base_list ()
 
 base_list (const base_list &tmp)
 This is a shallow copy constructor that implicitly passes the ownership from the source list to the new instance. More...
 
base_listoperator= (const base_list &tmp)
 
 base_list (const base_list &rhs, MEM_ROOT *mem_root)
 Construct a deep copy of the argument in memory root mem_root. More...
 
bool push_back (void *info)
 
bool push_back (void *info, MEM_ROOT *mem_root)
 
bool push_front (void *info)
 
bool push_front (void *info, MEM_ROOT *mem_root)
 
void remove (list_node **prev)
 
void concat (base_list *list)
 
void * pop (void)
 
void disjoin (base_list *list)
 
void prepend (base_list *list)
 
void sort (Node_cmp_func cmp, void *arg)
 Sort the list. More...
 
void swap (base_list &rhs)
 Swap two lists. More...
 
list_nodelast_node ()
 
list_nodefirst_node ()
 
void * head ()
 
const void * head () const
 
void ** head_ref ()
 
void * back ()
 
bool is_empty () const
 
list_nodelast_ref ()
 

Additional Inherited Members

- Public Attributes inherited from base_list
uint elements
 
- Protected Member Functions inherited from base_list
void after (void *info, list_node *node)
 
bool after (void *info, list_node *node, MEM_ROOT *mem_root)
 
- Protected Attributes inherited from base_list
list_nodefirst
 
list_node ** last
 

Constructor & Destructor Documentation

◆ List() [1/3]

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

◆ List() [2/3]

template<class T>
List< T >::List ( const List< T > &  tmp)
inline

◆ List() [3/3]

template<class T>
List< T >::List ( const List< T > &  tmp,
MEM_ROOT mem_root 
)
inline

Member Function Documentation

◆ back()

template<class T>
T* List< T >::back ( )
inline

◆ concat()

template<class T>
void List< T >::concat ( List< T > *  list)
inline

◆ delete_elements()

template<class T>
void List< T >::delete_elements ( void  )
inline

◆ destroy_elements()

template<class T>
void List< T >::destroy_elements ( void  )
inline

◆ disjoin()

template<class T>
void List< T >::disjoin ( List< T > *  list)
inline

◆ head() [1/2]

template<class T>
T* List< T >::head ( )
inline

◆ head() [2/2]

template<class T>
const T* List< T >::head ( ) const
inline

◆ head_ref()

template<class T>
T** List< T >::head_ref ( )
inline

◆ operator=()

template<class T>
List& List< T >::operator= ( const List< T > &  tmp)
inline

◆ operator[]()

template<class T>
T* List< T >::operator[] ( uint  index) const
inline

◆ pop()

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

◆ prepend()

template<class T>
void List< T >::prepend ( List< T > *  list)
inline

◆ push_back() [1/2]

template<class T>
bool List< T >::push_back ( T *  a)
inline

◆ push_back() [2/2]

template<class T>
bool List< T >::push_back ( T *  a,
MEM_ROOT mem_root 
)
inline

◆ push_front() [1/2]

template<class T>
bool List< T >::push_front ( T *  a)
inline

◆ push_front() [2/2]

template<class T>
bool List< T >::push_front ( T *  a,
MEM_ROOT mem_root 
)
inline

◆ replace()

template<class T>
void List< T >::replace ( uint  index,
T *  new_value 
)
inline

◆ swap_elts()

template<class T>
bool List< T >::swap_elts ( uint  index1,
uint  index2 
)
inline

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