#include <HashMap.h>
Public Member Functions | |
HashMap (int capacity=16, float loadFactor=0.75f) | |
コンストラクタ | |
~HashMap () | |
デストラクタ | |
void | cloneTo (HashMap *destination) const |
クローン | |
int | getCount () const |
要素数の取得 | |
bool | isEmpty () const |
空かどうか | |
ValueType | get (const HashKey &key) const |
要素の取得 | |
int | getCapacity () const |
容量の取得 | |
float | getLoadFactor () const |
負荷係数の取得 | |
void | toArray (ArrayList< HashData< HashKey, ValueType > > *arrayList) const |
配列の取得 | |
bool | put (HashKey key, ValueType value) |
要素の追加 | |
ValueType | remove (HashKey key) |
要素の削除 | |
void | clear () |
クリア | |
void | setCapacity (int capacity) |
容量の設定 | |
void | trim () |
トリム | |
void | debugPrint (bool detail) |
デバッグ用出力 |
このクラスは継承しないで下さい。 HashKeyは以下の4つのメソッドを実装している必要があります。
HashKey();
HashKey& operator =(const HashKey& copy);
bool equals(const HashKey& compare) const;
u_int getHashCode() const;
ValueTypeは通常はポインタ型を指定して下さい。
Definition at line 46 of file HashMap.h.
|
コンストラクタ
|
|
クローン
|
|
デバッグ用出力
|
|
要素の取得
|
|
容量の取得
|
|
要素数の取得
Definition at line 116 of file HashMap.h. Referenced by Lamp::HashMap< String, Picture * >::cloneTo(). |
|
負荷係数の取得
|
|
空かどうか
|
|
要素の追加
Definition at line 184 of file HashMap.h. Referenced by Lamp::HashMap< String, Picture * >::cloneTo(), and Lamp::HashMap< String, Picture * >::setCapacity(). |
|
要素の削除
|
|
容量の設定
Definition at line 296 of file HashMap.h. Referenced by Lamp::HashMap< String, Picture * >::cloneTo(), Lamp::HashMap< String, Picture * >::put(), and Lamp::HashMap< String, Picture * >::trim(). |
|
配列の取得
|