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

#include <KeyTable2.hpp>

Inheritance diagram for KeyTable2< T, U >:
Collaboration diagram for KeyTable2< T, U >:

Public Member Functions

 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)
bool seize (Ptr< T > &)
void add (Ptr< T > &)
void getPtr (Ptr< T > &, Uint32 i) const
void getPtr (Ptr< T > &) const
T * getPtr (Uint32 i) const
void remove (Ptr< T > &, const T &key)
void remove (Uint32 i)
void remove (Ptr< T > &)
void removeAll ()
void release (Ptr< T > &, const T &key)
void release (Uint32 i)
void release (Ptr< T > &)
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 KeyTable2< T, U >

KeyTable2 is DLHashTable2 with hardcoded Uint32 key named "key".

Definition at line 28 of file KeyTable2.hpp.

Member Function Documentation

template<class T, class U>
bool KeyTable2< T, U >::find ( Ptr< T > &  ptr,
const T &  key 
) const
inline

Find element key in hashtable update Ptr (i & p) (using key.equal(...))

Returns
true if found and false otherwise

Reimplemented from DLHashTable2< T, U >.

Definition at line 34 of file KeyTable2.hpp.

Here is the caller graph for this function:


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