DCL 4.0
|
#include <__HASHMAP.h>
Classes | |
struct | Assoc |
class | ConstIterator |
struct | HashNode |
class | Iterator |
Public Member Functions | |
virtual | ~HASHMAP_T () |
HASHMAP_T (size_t _bucketSize=21) | |
void | initBuckets (size_t _bucketSize) |
HASHMAP_T (const HASHMAP_T &_src) | |
const HASHMAP_T & | operator= (const HASHMAP_T &_src) |
ConstIterator | begin () const |
ConstIterator | end () const |
Iterator | begin () |
Iterator | end () |
size_t | bucketSize () const |
size_t | size () const |
size_t | sizeOfBucket (size_t _index) const |
bool | isEmpty () const |
Iterator | find (const KEY_T &_key) |
ConstIterator | find (const KEY_T &_key) const |
bool | lookup (const KEY_T &_key, VALUE_T &_rValue) const |
VALUE_T & | operator[] (const KEY_T &_key) |
size_t | erase (const KEY_T &_key) |
void | clear () |
Public Member Functions inherited from Object | |
virtual String | toString () const |
virtual void | destroy () |
String | className () const |
bool | isInstanceOf (const std::type_info &typeinfo) const |
virtual const std::type_info & | typeInfo () const |
Protected Member Functions | |
size_t | bucketIndex (const KEY_T &_key) const |
HashNode * | createNode (const KEY_T &_key) |
void | destroyNode (HashNode *_pNode) |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Object () |
Protected Attributes | |
HASHFUN_T | __hashFun |
size_t | __size |
PointerArray | __buckets |
Friends | |
class | Iterator |
class | ConstIterator |
template class HashMap의 DSO 호환성을 제공한다.
C++의 template class는 해당 코드를 사용하기 전에는 실제 이진 코드를 생성하지 않으므로, DSO(so, DLL)와 DSO, 또는 실행파일에서 객체를 주고받을 수 없다.
이 클래스는 DSO의 이러한 문제를 해결하며, 포함파일은 <dcl/HashMap.h>
이다.
이 코드를 사용하는 클래스는 다음과 같다.
Definition at line 55 of file __HASHMAP.h.
|
virtual |
HASHMAP_T::HASHMAP_T | ( | size_t | _bucketSize = 21 | ) |
Definition at line 127 of file __HASHMAP.cpp.
HASHMAP_T::HASHMAP_T | ( | const HASHMAP_T & | _src | ) |
Definition at line 140 of file __HASHMAP.cpp.
HASHMAP_T::Iterator HASHMAP_T::begin | ( | ) |
Definition at line 186 of file __HASHMAP.cpp.
HASHMAP_T::ConstIterator HASHMAP_T::begin | ( | ) | const |
Definition at line 175 of file __HASHMAP.cpp.
|
inlineprotected |
Definition at line 272 of file __HASHMAP.cpp.
|
inline |
Definition at line 278 of file __HASHMAP.h.
void HASHMAP_T::clear | ( | ) |
Definition at line 359 of file __HASHMAP.cpp.
|
protected |
Definition at line 278 of file __HASHMAP.cpp.
|
protected |
Definition at line 308 of file __HASHMAP.cpp.
|
inline |
Definition at line 264 of file __HASHMAP.h.
|
inline |
Definition at line 271 of file __HASHMAP.h.
size_t HASHMAP_T::erase | ( | const KEY_T & | _key | ) |
Definition at line 320 of file __HASHMAP.cpp.
HASHMAP_T::Iterator HASHMAP_T::find | ( | const KEY_T & | _key | ) |
Definition at line 209 of file __HASHMAP.cpp.
HASHMAP_T::ConstIterator HASHMAP_T::find | ( | const KEY_T & | _key | ) | const |
Definition at line 223 of file __HASHMAP.cpp.
void HASHMAP_T::initBuckets | ( | size_t | _bucketSize | ) |
Definition at line 134 of file __HASHMAP.cpp.
|
inline |
Definition at line 292 of file __HASHMAP.h.
bool HASHMAP_T::lookup | ( | const KEY_T & | _key, |
VALUE_T & | _rValue ) const |
Definition at line 237 of file __HASHMAP.cpp.
Definition at line 146 of file __HASHMAP.cpp.
VALUE_T & HASHMAP_T::operator[] | ( | const KEY_T & | _key | ) |
Definition at line 252 of file __HASHMAP.cpp.
|
inline |
Definition at line 285 of file __HASHMAP.h.
size_t HASHMAP_T::sizeOfBucket | ( | size_t | _index | ) | const |
Definition at line 197 of file __HASHMAP.cpp.
|
friend |
Definition at line 148 of file __HASHMAP.h.
|
friend |
Definition at line 147 of file __HASHMAP.h.
|
protected |
Definition at line 145 of file __HASHMAP.h.
|
protected |
Definition at line 143 of file __HASHMAP.h.
|
protected |
Definition at line 144 of file __HASHMAP.h.