#include <direct_hash_base.h>
Public Member Functions | |
| DHashBase (int capacity) | |
| virtual | ~DHashBase () |
| void | zero () |
| int | size () |
| virtual int | hashCode (KT key)=0 |
| virtual bool | match (KT key, ST *slot)=0 |
| virtual bool | isEmptySlot (ST *slot)=0 |
| virtual bool | isDeletedSlot (ST *slot) |
| int | baseTypeHashCode (unsigned int key) |
| int | secondaryHashCode (int primary) |
| bool | search (KT key, ST **retSlot) |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Attributes | |
| int | capacity |
| int | count |
| ST * | data |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Definition at line 38 of file direct_hash_base.h.
Definition at line 45 of file direct_hash_base.h.
Definition at line 51 of file direct_hash_base.h.
| int DHashBase< KT, ST >::baseTypeHashCode | ( | unsigned int | key | ) | [inline] |
Definition at line 74 of file direct_hash_base.h.
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| virtual int DHashBase< KT, ST >::hashCode | ( | KT | key | ) | [pure virtual] |
| virtual bool DHashBase< KT, ST >::isDeletedSlot | ( | ST * | slot | ) | [inline, virtual] |
Reimplemented in DBHash< KT >, DBOHash< KT, VT >, DBRHash< KT >, DSOHash< VT >, DBOHash< int, Wd >, DBOHash< int, CacheObject >, DBRHash< int >, and DSOHash< zmm::Array< CacheObject > >.
Definition at line 69 of file direct_hash_base.h.
Referenced by DHashBase< KT, struct dbo_hash_slot< KT, VT > >::search().
| virtual bool DHashBase< KT, ST >::isEmptySlot | ( | ST * | slot | ) | [pure virtual] |
| virtual bool DHashBase< KT, ST >::match | ( | KT | key, | |
| ST * | slot | |||
| ) | [pure virtual] |
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| bool DHashBase< KT, ST >::search | ( | KT | key, | |
| ST ** | retSlot | |||
| ) | [inline] |
Definition at line 113 of file direct_hash_base.h.
| int DHashBase< KT, ST >::secondaryHashCode | ( | int | primary | ) | [inline] |
Definition at line 103 of file direct_hash_base.h.
Referenced by DHashBase< KT, struct dbo_hash_slot< KT, VT > >::search().
| int DHashBase< KT, ST >::size | ( | ) | [inline] |
Definition at line 60 of file direct_hash_base.h.
| void DHashBase< KT, ST >::zero | ( | ) | [inline] |
Definition at line 55 of file direct_hash_base.h.
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
Definition at line 41 of file direct_hash_base.h.
Referenced by DHashBase< KT, struct dbo_hash_slot< KT, VT > >::baseTypeHashCode(), DHashBase< KT, struct dbo_hash_slot< KT, VT > >::search(), and DHashBase< KT, struct dbo_hash_slot< KT, VT > >::zero().
Definition at line 42 of file direct_hash_base.h.
Referenced by DHashBase< KT, struct dbo_hash_slot< KT, VT > >::DHashBase(), DHashBase< KT, struct dbo_hash_slot< KT, VT > >::search(), DHashBase< KT, struct dbo_hash_slot< KT, VT > >::size(), and DHashBase< KT, struct dbo_hash_slot< KT, VT > >::zero().
Definition at line 43 of file direct_hash_base.h.
Referenced by DHashBase< KT, struct dbo_hash_slot< KT, VT > >::DHashBase(), DHashBase< KT, struct dbo_hash_slot< KT, VT > >::search(), DHashBase< KT, struct dbo_hash_slot< KT, VT > >::zero(), and DHashBase< KT, struct dbo_hash_slot< KT, VT > >::~DHashBase().
pthread_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
1.6.1