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

#include <SLFifoList.hpp>

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

Classes

struct  Head
struct  HeadPOD

Public Member Functions

 SLFifoListImpl (P &thePool)
bool seizeFirst (Ptr< T > &)
bool seizeLast (Ptr< T > &)
bool seize (Ptr< T > &ptr)
void releaseFirst (Ptr< T > &)
void addFirst (Ptr< T > &)
void addLast (Ptr< T > &)
void removeFirst (Ptr< T > &)
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 last (Ptr< T > &) const
bool next (Ptr< T > &) const
bool hasNext (const Ptr< T > &) const
bool isEmpty () const

Protected Attributes

Head head
P & thePool

Detailed Description

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

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

Definition at line 30 of file SLFifoList.hpp.

Member Function Documentation

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

Update ptr to first element in list

Return i

Definition at line 292 of file SLFifoList.hpp.

template<typename P , typename T, typename U >
void SLFifoListImpl< P, T, U >::getPtr ( Ptr< T > &  p,
Uint32  i 
) const
inline

Update i & p value according to i

Definition at line 262 of file SLFifoList.hpp.

template<typename P , typename T, typename U >
void SLFifoListImpl< P, T, U >::getPtr ( Ptr< T > &  p) const
inline

Update p value for ptr according to i value

Definition at line 271 of file SLFifoList.hpp.

template<typename P , typename T, typename U >
T * SLFifoListImpl< P, T, U >::getPtr ( Uint32  i) const
inline

Get pointer for i value

Definition at line 279 of file SLFifoList.hpp.

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

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

NOTE ptr must be both p & i

Definition at line 337 of file SLFifoList.hpp.

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

Update ptr to first element in list

Return i

Definition at line 307 of file SLFifoList.hpp.

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

Get next element

NOTE ptr must be both p & i

Definition at line 322 of file SLFifoList.hpp.


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