#include <NamedObjectDatabase.h>
Public Member Functions | |
NamedObjectDatabase (int capacity=256, float loadFactor=0.75f) | |
コンストラクタ | |
virtual | ~NamedObjectDatabase () |
デストラクタ | |
virtual bool | add (const String &name, Type *object) |
オブジェクトの追加 | |
virtual bool | remove (const String &name, Type *object) |
オブジェクトの削除 | |
virtual int | clear () |
クリア | |
virtual int | getCount () |
オブジェクト数の取得 | |
virtual Type * | get (int index) |
オブジェクトの取得 | |
virtual Type * | search (const String &name) |
オブジェクトの検索 |
Definition at line 38 of file NamedObjectDatabase.h.
|
コンストラクタ
Definition at line 45 of file NamedObjectDatabase.h. |
|
オブジェクトの追加
Definition at line 65 of file NamedObjectDatabase.h. References Assert, Lamp::String::getSize(), NULL, Lamp::Deque< Type * >::pushBack(), Lamp::HashMap< String, Type * >::put(), and Lamp::NamedObjectDatabase< Type >::search(). |
|
クリア
Definition at line 94 of file NamedObjectDatabase.h. References Lamp::HashMap< String, Type * >::clear(), Lamp::Deque< Type * >::clear(), and Lamp::NamedObjectDatabase< Type >::getCount(). |
|
オブジェクトの取得
Definition at line 115 of file NamedObjectDatabase.h. References Lamp::Deque< Type * >::get(). |
|
オブジェクト数の取得
Definition at line 108 of file NamedObjectDatabase.h. References Lamp::Deque< Type * >::getCount(). Referenced by Lamp::NamedObjectDatabase< Type >::clear(). |
|
オブジェクトの削除
Definition at line 79 of file NamedObjectDatabase.h. References Assert, Lamp::String::getSize(), NULL, Lamp::HashMap< String, Type * >::remove(), Lamp::Deque< Type * >::removeByValue(), and Lamp::NamedObjectDatabase< Type >::search(). |
|
オブジェクトの検索
Definition at line 122 of file NamedObjectDatabase.h. References Lamp::HashMap< String, Type * >::get(). Referenced by Lamp::NamedObjectDatabase< Type >::add(), and Lamp::NamedObjectDatabase< Type >::remove(). |