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

Public Member Functions

 KeyTable2C (ArrayPool< U > &pool)
Uint32 get_count () const
bool seize (Ptr< T > &ptr)
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 KeyTable2< T, U >
 KeyTable2 (ArrayPool< U > &pool)
bool find (Ptr< T > &ptr, const T &rec) const
bool find (Ptr< T > &ptr, Uint32 key) const
- Public Member Functions inherited from DLHashTable2< T, U >
 DLHashTable2 (ArrayPool< U > &thePool)
bool setSize (Uint32 noOfElements)
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
bool isEmpty () const

Detailed Description

template<class T, class U>
class KeyTable2C< T, U >

Definition at line 46 of file KeyTable2.hpp.

Member Function Documentation

template<class T, class U>
void KeyTable2C< T, U >::add ( Ptr< T > &  obj)
inline

Add an object to the hashtable

Reimplemented from DLHashTable2< T, U >.

Definition at line 64 of file KeyTable2.hpp.

Here is the caller graph for this function:

template<class T, class U>
void KeyTable2C< T, U >::release ( Ptr< T > &  ptr,
const T &  key 
)
inline

Remove element (and set Ptr to removed element) And return element to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 95 of file KeyTable2.hpp.

Here is the caller graph for this function:

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

Remove element and return to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 104 of file KeyTable2.hpp.

template<class T, class U>
void KeyTable2C< T, U >::release ( Ptr< T > &  ptr)
inline

Remove element and return to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 110 of file KeyTable2.hpp.

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

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

Reimplemented from DLHashTable2< T, U >.

Definition at line 69 of file KeyTable2.hpp.

Here is the caller graph for this function:

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

Remove element Note does not return to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 78 of file KeyTable2.hpp.

template<class T, class U>
void KeyTable2C< T, U >::remove ( Ptr< T > &  ptr)
inline

Remove element Note does not return to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 84 of file KeyTable2.hpp.

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

Remove all elements, but dont return them to pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 90 of file KeyTable2.hpp.

Here is the caller graph for this function:

template<class T, class U>
bool KeyTable2C< T, U >::seize ( Ptr< T > &  ptr)
inline

Seize element from pool - return i

Note must be added using add (even before hash.release) or be released using pool

Reimplemented from DLHashTable2< T, U >.

Definition at line 55 of file KeyTable2.hpp.


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