B2BITS FIX Antenna HFT
1.0.17
|
#include <hash_table_iface.h>
Classes | |
class | iterator |
Public Member Functions | |
template<typename ElementKeyType2 > | |
int | _findOrAdd (const ElementKeyType2 &key, ElementType **addedElement, int *elemExists, bool cleanElem) |
int | addReplace (ElementType *elem, ElementType **addedElement=NULL, int *elemExists=NULL) |
template<typename ElementKeyType2 > | |
int | addReplace_CleanElem (const ElementKeyType2 &key, ElementType **addedElement, int *elemExists) |
int | allocSize () |
template<typename ElementKeyType2 > | |
int | append (const ElementKeyType2 &key, ElementType **addedElement, bool bCleanElem) |
void | clear () |
void | createElem (ElementType *elem) |
void | destroyElem (ElementType *elem) |
int | EQ_COMPARATOR (ElementType *e1, ElementType *e2) |
template<typename ElementKeyType2 > | |
int | findOrAdd (const ElementKeyType2 &key, ElementType **addedElement, int *elemExists) |
template<typename ElementKeyType2 > | |
int | findOrAdd_CleanElem (const ElementKeyType2 &key, ElementType **addedElement=NULL, int *elemExists=NULL) |
hashvalue_t | hash_function (ElementType *e) |
template<typename ElementKeyType2 > | |
hashvalue_t | hash_function_key (const ElementKeyType2 &key) |
HashTable () | |
void | init (const char *aname, int num_elements, void *allocatedMemory) |
template<class Allocator > | |
void | init (const char *aname, int num_elements, Allocator &allocator) |
void | init (const char *aname, int num_elements) |
ElementType * | init_iterator (iterator &it) |
bool | isFull () |
bool | isMember (ElementType *elem) |
template<typename ElementKeyType2 > | |
int | Key_EQ_COMPARATOR (ElementType *e1, const ElementKeyType2 &key2) |
template<typename ElementKeyType2 > | |
ElementType * | lookupByHashedKey (const ElementKeyType2 &key, hashvalue_t hash) |
template<typename ElementKeyType2 > | |
ElementType * | lookupByKey (const ElementKeyType2 &key) |
int | maxElements () |
int | minAllowedElements (int num_elements) |
int | numElements () |
void * | release () |
void | remove (ElementType *element) |
template<typename ElementKeyType2 > | |
bool | removeByKey (const ElementKeyType2 &key) |
void | swap (HashTable &rhs) |
~HashTable () | |
Static Public Member Functions | |
static void | cleanElem (ElementType *elem) |
static void | copyElem (ElementType *dst, ElementType *src) |
Public Attributes | |
SPINLOCK_T | lock |
std::string | name |
rwlock | rwlock_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::cleanElem(), HASHTABLE_ENTRIES, IDX_TO_ELEM, and HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::numElements().
Referenced by HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::_findOrAdd().
|
inlinestatic |
|
inline |
References HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::init_iterator(), and HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::iterator::next().
Referenced by HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::~HashTable().
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::allocSize(), HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::minAllowedElements(), and HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::name.
|
inline |
References HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::allocSize(), MALLOC, HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::minAllowedElements(), and HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::name.
|
inline |
|
inline |
References HASHTABLE_ENTRIES.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References ELEM_TO_IDX.
|
inline |
References ELEM_TO_IDX.
|
inline |
SPINLOCK_T HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::lock |
std::string HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::name |
Referenced by HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::HashTable(), HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::init(), and HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::swap().
rwlock HashTable< ElementType, ElementKeyType, ElementKeyHashFunction, ElementEQComparator, ElementKeyCopier >::rwlock_ |