MySQL 5.6.14 Source Code Document
|
#include <SLList.hpp>
Classes | |
struct | Head |
struct | HeadPOD |
Public Member Functions | |
SLListImpl (P &thePool) | |
bool | seize (Ptr< T > &) |
bool | seizeId (Ptr< T > &, Uint32 i) |
bool | seizeN (Ptr< T > &, Uint32 n) |
void | release () |
void | remove () |
void | getPtr (Ptr< T > &, Uint32 i) const |
void | getPtr (Ptr< T > &) const |
T * | getPtr (Uint32 i) const |
bool | first (Ptr< T > &) const |
bool | next (Ptr< T > &) const |
bool | hasNext (const Ptr< T > &) const |
void | add (Ptr< T > &p) |
void | add (Uint32 first, Ptr< T > &last) |
bool | remove_front (Ptr< T > &) |
Uint32 | noOfElements () const |
void | print (NdbOut &out) |
bool | empty () const |
Protected Attributes | |
Head | head |
P & | thePool |
Template class used for implementing an list of object retreived from a pool
Definition at line 30 of file SLList.hpp.
|
inline |
Add
Definition at line 121 of file SLList.hpp.
|
inline |
Add a list to list all elements must be correctly initilized correctly wrt next/prev
Definition at line 295 of file SLList.hpp.
|
inline |
Update ptr to first element in list
Return i
Definition at line 350 of file SLList.hpp.
|
inline |
Update i & p value according to i
Definition at line 320 of file SLList.hpp.
|
inline |
Update p value for ptr according to i value
Definition at line 329 of file SLList.hpp.
|
inline |
Get pointer for i value
Definition at line 337 of file SLList.hpp.
|
inline |
|
inline |
Get next element
NOTE ptr must be both p & i
Definition at line 366 of file SLList.hpp.
|
inline |
Print (Run operator NdbOut<< on every element)
Definition at line 154 of file SLList.hpp.
|
inline |
Return all objects to the pool
Definition at line 304 of file SLList.hpp.
|
inline |
Remove all object from list but don't return to pool
Definition at line 272 of file SLList.hpp.
|
inline |
|
inline |
Allocate an object from pool - update Ptr
Return i
Definition at line 205 of file SLList.hpp.
|
inline |
|
inline |
Allocate nobjects from pool
Return i value of first object allocated or RNIL if fails
Failure
Success
Definition at line 239 of file SLList.hpp.