MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DLCFifoList< T, U > Class Template Reference
Inheritance diagram for DLCFifoList< T, U >:
Collaboration diagram for DLCFifoList< T, U >:

Classes

struct  Head

Public Member Functions

 DLCFifoList (ArrayPool< T > &thePool)
Uint32 count () const
bool seize (Ptr< T > &ptr)
bool seizeFirst (Ptr< T > &ptr)
bool seizeLast (Ptr< T > &ptr)
bool seizeId (Ptr< T > &ptr, Uint32 i)
void add (Ptr< T > &ptr)
void addFirst (Ptr< T > &ptr)
void addLast (Ptr< T > &ptr)
void insert (Ptr< T > &ptr, Ptr< T > &loc)
void remove (T *t)
void remove (Ptr< T > &ptr)
void release (Uint32 i)
void release (Ptr< T > &ptr)
void release ()
void getPtr (Ptr< T > &ptr, Uint32 i) const
void getPtr (Ptr< T > &ptr) const
T * getPtr (Uint32 i) const
bool first (Ptr< T > &ptr) const
bool last (Ptr< T > &ptr) const
bool next (Ptr< T > &ptr) const
bool prev (Ptr< T > &ptr) const
bool hasNext (const Ptr< T > &ptr) const
bool hasPrev (const Ptr< T > &ptr) const
bool isEmpty () const
DLCFifoList< T > & operator= (const DLCFifoList< T > &src)

Protected Attributes

Head head

Additional Inherited Members

- Protected Member Functions inherited from DLFifoList< T, U >
 DLFifoList (ArrayPool< T > &p)

Detailed Description

template<class T, class U = T>
class DLCFifoList< T, U >

Definition at line 27 of file DLCFifoList.hpp.

Member Function Documentation

template<class T, class U = T>
bool DLCFifoList< T, U >::first ( Ptr< T > &  ) const
inline

Update ptr to first element in list

Return true if ok, false if empty

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 133 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
void DLCFifoList< T, U >::getPtr ( Ptr< T > &  ,
Uint32  i 
) const
inline

Update i & p value according to i

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 121 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
void DLCFifoList< T, U >::getPtr ( Ptr< T > &  ) const
inline

Update p value for ptr according to i value

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 125 of file DLCFifoList.hpp.

template<class T, class U = T>
T* DLCFifoList< T, U >::getPtr ( Uint32  i) const
inline

Get pointer for i value

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 129 of file DLCFifoList.hpp.

template<class T, class U = T>
bool DLCFifoList< T, U >::hasNext ( const Ptr< T > &  ) const
inline

Check if next exists i.e. this is not last

NOTE ptr must be both p & i

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 149 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
bool DLCFifoList< T, U >::hasPrev ( const Ptr< T > &  ) const
inline

Check if next exists i.e. this is not last

NOTE ptr must be both p & i

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 153 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
void DLCFifoList< T, U >::insert ( Ptr< T > &  ptr,
Ptr< T > &  loc 
)
inline

Insert object ptr</ptr> before loc

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 91 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
bool DLCFifoList< T, U >::last ( Ptr< T > &  ) const
inline

Update ptr to last element in list

Return true if ok, false if empty

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 137 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
bool DLCFifoList< T, U >::next ( Ptr< T > &  ) const
inline

Get next element

NOTE ptr must be both p & i

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 141 of file DLCFifoList.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
bool DLCFifoList< T, U >::prev ( Ptr< T > &  ) const
inline

Get next element

NOTE ptr must be both p & i

Reimplemented from DLFifoListImpl< ArrayPool< T >, T, U >.

Definition at line 145 of file DLCFifoList.hpp.

Here is the caller graph for this function:


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