Pol  Rev 533
StorageArea Class Reference

#include <storage.h>

+ Collaboration diagram for StorageArea:

List of all members.

Public Member Functions

 StorageArea (std::string name)
 ~StorageArea ()
bool delete_root_item (const std::string &name)
Itemfind_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 &)

Detailed Description

Definition at line 24 of file storage.h.


Member Typedef Documentation

typedef map< std::string, Item*, ci_cmp_pred > StorageArea::Cont [private]

Definition at line 41 of file storage.h.


Constructor & Destructor Documentation

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:


Member Function Documentation

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:

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:

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:


Friends And Related Function Documentation

friend class StorageAreaImp [friend]

Definition at line 44 of file storage.h.

friend class StorageAreaIterator [friend]

Definition at line 45 of file storage.h.

void write_dirty_storage ( ofstream &  ) [friend]

Member Data Documentation

std::string StorageArea::_name [private]

Definition at line 38 of file storage.h.

Referenced by StorageAreaImp::getStringRep(), and write_dirty_storage().


The documentation for this class was generated from the following files: