MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SQL_I_List< T > Class Template Reference

#include <sql_list.h>

Inheritance diagram for SQL_I_List< T >:
Collaboration diagram for SQL_I_List< T >:

Public Member Functions

 SQL_I_List (const SQL_I_List &tmp)
void empty ()
void link_in_list (T *element, T **next_ptr)
void save_and_clear (SQL_I_List< T > *save)
void push_front (SQL_I_List< T > *save)
void push_back (SQL_I_List< T > *save)

Public Attributes

uint elements
T * first
T ** next

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

template<typename T>
class SQL_I_List< T >

Simple intrusive linked list.

Remarks
Similar in nature to base_list, but intrusive. It keeps a a pointer to the first element in the list and a indirect reference to the last element.

Definition at line 37 of file sql_list.h.

Member Data Documentation

template<typename T>
T* SQL_I_List< T >::first

The first element in the list.

Definition at line 42 of file sql_list.h.

template<typename T>
T** SQL_I_List< T >::next

A reference to the next element in the list.

Definition at line 44 of file sql_list.h.


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