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

Public Member Functions

 DLCHashTable (ArrayPool< T > &thePool)
Uint32 count () const
void add (Ptr< T > &ptr)
void remove (Ptr< T > &ptr, const T &key)
void remove (Uint32 i)
void remove (Ptr< T > &ptr)
void removeAll ()
void release (Ptr< T > &ptr, const T &key)
void release (Uint32 i)
void release (Ptr< T > &ptr)
- Public Member Functions inherited from DLHashTable< T, U >
 DLHashTable (ArrayPool< T > &p)
- Public Member Functions inherited from DLHashTableImpl< ArrayPool< T >, T, U >
 DLHashTableImpl (ArrayPool< T > &thePool)
bool setSize (Uint32 noOfElements)
bool seize (Ptr< T > &)
bool find (Ptr< T > &, const T &key) const
void getPtr (Ptr< T > &, Uint32 i) const
void getPtr (Ptr< T > &) const
T * getPtr (Uint32 i) const
void getPtr (Iterator &iter) const
bool first (Iterator &iter) const
bool next (Iterator &iter) const
bool next (Uint32 bucket, Iterator &iter) const

Detailed Description

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

Definition at line 27 of file DLCHashTable.hpp.

Member Function Documentation

template<class T, class U = T>
void DLCHashTable< T, U >::add ( Ptr< T > &  )
inline

Add an object to the hashtable

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

Definition at line 40 of file DLCHashTable.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
void DLCHashTable< T, U >::release ( Uint32  i)
inline

Remove element and return to pool

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

Definition at line 70 of file DLCHashTable.hpp.

template<class T, class U = T>
void DLCHashTable< T, U >::release ( Ptr< T > &  )
inline

Remove element and return to pool

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

Definition at line 75 of file DLCHashTable.hpp.

template<class T, class U = T>
void DLCHashTable< T, U >::remove ( Ptr< T > &  ,
const T &  key 
)
inline

Remove element (and set Ptr to removed element) Note does not return to pool

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

Definition at line 45 of file DLCHashTable.hpp.

Here is the caller graph for this function:

template<class T, class U = T>
void DLCHashTable< T, U >::remove ( Uint32  i)
inline

Remove element Note does not return to pool

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

Definition at line 50 of file DLCHashTable.hpp.

template<class T, class U = T>
void DLCHashTable< T, U >::remove ( Ptr< T > &  )
inline

Remove element Note does not return to pool

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

Definition at line 55 of file DLCHashTable.hpp.

template<class T, class U = T>
void DLCHashTable< T, U >::removeAll ( )
inline

Remove all elements, but dont return them to pool

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

Definition at line 60 of file DLCHashTable.hpp.

Here is the caller graph for this function:


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