drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::base_list Class Reference
Inheritance diagram for drizzled::base_list:
[legend]
Collaboration diagram for drizzled::base_list:
[legend]

Public Member Functions

void clear ()
 base_list (const base_list &tmp)
base_list & operator= (const base_list &tmp)
 base_list (bool)
void push_back (void *info)
void push_back (void *info, memory::Root &mem)
void push_front (void *info)
void remove (list_node **prev)
void concat (base_list *list)
void * pop ()
void disjoin (base_list *list)
void prepand (base_list *list)
void swap (base_list &rhs)
bool is_empty ()

Protected Member Functions

void after (void *info, list_node *node)

Protected Attributes

list_node * first
list_node ** last
uint32_t elements

Friends

class base_list_iterator

Additional Inherited Members

Static Public Member Functions inherited from drizzled::memory::SqlAlloc
static void * operator new (size_t size)
static void * operator new[] (size_t size)
static void * operator new (size_t size, Root &root)
static void * operator new[] (size_t size, Root &root)
static void * operator new (size_t size, Root *root)
static void * operator new[] (size_t size, Root *root)
static void operator delete (void *)
static void operator delete[] (void *)
static void operator delete (void *, Root &)
static void operator delete[] (void *, Root &)
static void operator delete (void *, Root *)
static void operator delete[] (void *, Root *)

Detailed Description

Definition at line 110 of file sql_list.h.

Constructor & Destructor Documentation

◆ base_list() [1/3]

drizzled::base_list::base_list ( )
inline

Definition at line 118 of file sql_list.h.

◆ base_list() [2/3]

drizzled::base_list::base_list ( const base_list & tmp)
inline

This is a shallow copy constructor that implicitly passes the ownership from the source list to the new instance. The old instance is not updated, so both objects end up sharing the same nodes. If one of the instances then adds or removes a node, the other becomes out of sync ('last' pointer), while still operational. Some old code uses and relies on this behaviour. This logic is quite tricky: please do not use it in any new code.

Definition at line 128 of file sql_list.h.

◆ base_list() [3/3]

drizzled::base_list::base_list ( bool )
inline

Definition at line 141 of file sql_list.h.

Member Function Documentation

◆ after()

void drizzled::base_list::after ( void * info,
list_node * node )
inlineprotected

Definition at line 269 of file sql_list.h.

◆ clear()

void drizzled::base_list::clear ( )
inline

Definition at line 117 of file sql_list.h.

◆ concat()

void drizzled::base_list::concat ( base_list * list)
inline

Definition at line 172 of file sql_list.h.

◆ disjoin()

void drizzled::base_list::disjoin ( base_list * list)
inline

Definition at line 190 of file sql_list.h.

◆ is_empty()

bool drizzled::base_list::is_empty ( )
inline

Definition at line 223 of file sql_list.h.

◆ operator=()

base_list & drizzled::base_list::operator= ( const base_list & tmp)
inline

Definition at line 134 of file sql_list.h.

◆ pop()

void * drizzled::base_list::pop ( )
inline

Definition at line 181 of file sql_list.h.

◆ prepand()

void drizzled::base_list::prepand ( base_list * list)
inline

Definition at line 205 of file sql_list.h.

◆ push_back() [1/2]

void drizzled::base_list::push_back ( void * info)
inline

Definition at line 142 of file sql_list.h.

◆ push_back() [2/2]

void drizzled::base_list::push_back ( void * info,
memory::Root & mem )
inline

Definition at line 148 of file sql_list.h.

◆ push_front()

void drizzled::base_list::push_front ( void * info)
inline

Definition at line 154 of file sql_list.h.

◆ remove()

void drizzled::base_list::remove ( list_node ** prev)
inline

Definition at line 162 of file sql_list.h.

◆ swap()

void drizzled::base_list::swap ( base_list & rhs)
inline

Swap two lists.

Definition at line 217 of file sql_list.h.

◆ base_list_iterator

friend class base_list_iterator
friend

Definition at line 224 of file sql_list.h.

Member Data Documentation

◆ elements

uint32_t drizzled::base_list::elements
protected

Definition at line 114 of file sql_list.h.

◆ first

list_node* drizzled::base_list::first
protected

Definition at line 113 of file sql_list.h.

◆ last

list_node ** drizzled::base_list::last
protected

Definition at line 113 of file sql_list.h.


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