#include <db.hpp>


As of 8/2007 implemented by a hashtable.
Definition at line 91 of file db.hpp.
Public Member Functions | |
| void | asList (list< PcAsset > &output) const |
| intended for diagnostics | |
| void | clear () throw () |
| removes all registered assets and does something similar to Asset::unlink() on each to break cyclic dependencies (we can't use the real unlink()-function, because this will propagate, including calls to the AssetManager. | |
| bool | del (ID< Asset > hash) |
| template<class KIND> | |
| P< KIND > | get (ID< KIND > hash) const |
| void | put (ID< Asset > hash, PAsset &ptr) |
| template<class KIND> | |
| void | put (ID< KIND > hash, P< KIND > &ptr) |
Private Member Functions | |
| const PAsset & | find (size_t hash) const |
Private Attributes | |
| IdHashtable | table |
Friends | |
| class | lib::singleton::StaticCreate< DB > |
| void asset::DB::asList | ( | list< PcAsset > & | output | ) | const [inline] |
intended for diagnostics
Definition at line 150 of file db.hpp.
Referenced by asset::AssetManager::listContent().

| void asset::DB::clear | ( | ) | throw () [inline] |
removes all registered assets and does something similar to Asset::unlink() on each to break cyclic dependencies (we can't use the real unlink()-function, because this will propagate, including calls to the AssetManager.
As the destructor of DB needs to call clear(), this could result in segfaults. This doesn't seem to be a problem, though, because we register and process all assets and the net effect is just breaking any cyclic dependencies)
Definition at line 127 of file db.hpp.
References lumiera::Error::what().

1.5.6