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

#include <DLFifoList.hpp>

Inheritance diagram for DLFifoListImpl< P, T, U >:
Collaboration diagram for DLFifoListImpl< P, T, U >:

Classes

struct  Head

Public Member Functions

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

Protected Attributes

Head head
P & thePool

Detailed Description

template<typename P, typename T, typename U = T>
class DLFifoListImpl< P, T, U >

Template class used for implementing an list of object retreived from a pool

Definition at line 31 of file DLFifoList.hpp.

Member Function Documentation

template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::first ( Ptr< T > &  p) const
inline

Update ptr to first element in list

Return true if ok, false if empty

Update ptr to first element in list

Return i

Reimplemented in DLCFifoList< T, U >, DLCFifoList< Page_entry, Page_entry_queue_ptr >, DLCFifoList< Gcp_record >, DLCFifoList< RedoCacheLogPageRecord >, DLCFifoList< Page_entry, Page_entry_stack_ptr >, DLCFifoList< Table >, and DLCFifoList< LogFileRecord >.

Definition at line 393 of file DLFifoList.hpp.

Here is the caller graph for this function:

template<typename P , typename T, typename U >
void DLFifoListImpl< P, T, U >::getPtr ( Ptr< T > &  p,
Uint32  i 
) const
inline
template<typename P , typename T, typename U >
void DLFifoListImpl< P, T, U >::getPtr ( Ptr< T > &  p) const
inline
template<typename P , typename T, typename U >
T * DLFifoListImpl< P, T, U >::getPtr ( Uint32  i) const
inline
template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::hasNext ( const Ptr< T > &  p) const
inline
template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::hasPrev ( const Ptr< T > &  p) const
inline
template<typename P , typename T, typename U >
void DLFifoListImpl< P, T, U >::insert ( Ptr< T > &  ptr,
Ptr< T > &  loc 
)
inline

Insert object ptr</ptr> before loc

Reimplemented in DLCFifoList< T, U >, DLCFifoList< Page_entry, Page_entry_queue_ptr >, DLCFifoList< Gcp_record >, DLCFifoList< RedoCacheLogPageRecord >, DLCFifoList< Page_entry, Page_entry_stack_ptr >, DLCFifoList< Table >, and DLCFifoList< LogFileRecord >.

Definition at line 267 of file DLFifoList.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::last ( Ptr< T > &  p) const
inline

Update ptr to last element in list

Return true if ok, false if empty

Reimplemented in DLCFifoList< T, U >, DLCFifoList< Page_entry, Page_entry_queue_ptr >, DLCFifoList< Gcp_record >, DLCFifoList< RedoCacheLogPageRecord >, DLCFifoList< Page_entry, Page_entry_stack_ptr >, DLCFifoList< Table >, and DLCFifoList< LogFileRecord >.

Definition at line 408 of file DLFifoList.hpp.

Here is the caller graph for this function:

template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::next ( Ptr< T > &  p) const
inline
template<typename P, typename T, typename U = T>
DLFifoListImpl<P,T,U>& DLFifoListImpl< P, T, U >::operator= ( const DLFifoListImpl< P, T, U > &  src)
inline

Copy list (head) Will construct to identical lists

Definition at line 134 of file DLFifoList.hpp.

template<typename P , typename T, typename U >
bool DLFifoListImpl< P, T, U >::prev ( Ptr< T > &  p) const
inline

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