|
Pol
Rev 533
|
#include <storage.h>
Collaboration diagram for StorageArea:Public Member Functions | |
| StorageArea (std::string name) | |
| ~StorageArea () | |
| bool | delete_root_item (const std::string &name) |
| Item * | find_root_item (const std::string &name) |
| void | insert_root_item (Item *item) |
| void | load_item (ConfigElem &elem) |
| void | print (std::ostream &os) const |
Private Types | |
| typedef map< std::string, Item *, ci_cmp_pred > | Cont |
Private Attributes | |
| Cont | _items |
| std::string | _name |
Friends | |
| class | StorageAreaImp |
| class | StorageAreaIterator |
| void | write_dirty_storage (ofstream &) |
typedef map< std::string, Item*, ci_cmp_pred > StorageArea::Cont [private] |
| StorageArea::StorageArea | ( | std::string | name | ) |
Definition at line 36 of file storage.cpp.
Definition at line 41 of file storage.cpp.
References _items, and UObject::destroy().
Here is the call graph for this function:| bool StorageArea::delete_root_item | ( | const std::string & | name | ) |
Definition at line 63 of file storage.cpp.
References _items, and UObject::destroy().
Referenced by StorageExecutorModule::mf_DestroyRootItemInStorageArea().
Here is the call graph for this function:
Here is the caller graph for this function:| Item * StorageArea::find_root_item | ( | const std::string & | name | ) |
Definition at line 52 of file storage.cpp.
References _items.
Referenced by find_giveitem_container(), and StorageExecutorModule::mf_FindRootItemInStorageArea().
Here is the caller graph for this function:| void StorageArea::insert_root_item | ( | Item * | item | ) |
Definition at line 76 of file storage.cpp.
References _items, Item::inuse(), and Item::name().
Referenced by find_giveitem_container(), load_item(), and StorageExecutorModule::mf_CreateRootItemInStorageArea().
Here is the call graph for this function:
Here is the caller graph for this function:| void StorageArea::load_item | ( | ConfigElem & | elem | ) |
Definition at line 85 of file storage.cpp.
References add_loaded_item(), current_incremental_save, defer_item_insertion(), ConfigElem::get_prop(), get_save_index(), insert_root_item(), read_item(), ConfigElem::remove_prop(), UObject::serial, system_find_item(), and ConfigElem::warn_with_line().
Referenced by Storage::read(), and slurp().
Here is the call graph for this function:
Here is the caller graph for this function:| void StorageArea::print | ( | std::ostream & | os | ) | const |
Definition at line 161 of file storage.cpp.
References _items, and Item::saveonexit().
Referenced by operator<<().
Here is the call graph for this function:
Here is the caller graph for this function:friend class StorageAreaImp [friend] |
friend class StorageAreaIterator [friend] |
| void write_dirty_storage | ( | ofstream & | ) | [friend] |
Cont StorageArea::_items [private] |
Definition at line 42 of file storage.h.
Referenced by delete_root_item(), find_root_item(), StorageAreaImp::get_member(), insert_root_item(), print(), StorageAreaIterator::step(), write_dirty_storage(), and ~StorageArea().
std::string StorageArea::_name [private] |
Definition at line 38 of file storage.h.
Referenced by StorageAreaImp::getStringRep(), and write_dirty_storage().