OpenMW
|
#include <store.hpp>
Classes | |
class | GetRecords |
Public Types | |
typedef SharedIterator< T > | iterator |
Public Member Functions | |
Store () | |
Store (const Store< T > &orig) | |
virtual void | clearDynamic () |
const T * | search (const std::string &id) const |
const T * | searchRandom (const std::string &id) const |
const T * | find (const std::string &id) const |
const T * | findRandom (const std::string &id) const |
void | load (ESM::ESMReader &esm, const std::string &id) |
void | setUp () |
iterator | begin () const |
iterator | end () const |
size_t | getSize () const |
void | listIdentifier (std::vector< std::string > &list) const |
T * | insert (const T &item) |
T * | insertStatic (const T &item) |
bool | eraseStatic (const std::string &id) |
bool | erase (const std::string &id) |
bool | erase (const T &item) |
template<> | |
void | load (ESM::ESMReader &esm, const std::string &id) |
template<> | |
void | load (ESM::ESMReader &esm, const std::string &id) |
template<> | |
void | load (ESM::ESMReader &esm, const std::string &id) |
Private Types | |
typedef std::map< std::string, T > | Dynamic |
typedef std::map< std::string, T > | Static |
Private Attributes | |
std::map< std::string, T > | mStatic |
std::vector< T * > | mShared |
std::map< std::string, T > | mDynamic |
Friends | |
class | ESMStore |
typedef std::map<std::string, T> MWWorld::Store< T >::Dynamic [private] |
typedef SharedIterator<T> MWWorld::Store< T >::iterator |
typedef std::map<std::string, T> MWWorld::Store< T >::Static [private] |
MWWorld::Store< T >::Store | ( | ) | [inline] |
MWWorld::Store< T >::Store | ( | const Store< T > & | orig | ) | [inline] |
iterator MWWorld::Store< T >::begin | ( | ) | const [inline] |
virtual void MWWorld::Store< T >::clearDynamic | ( | ) | [inline, virtual] |
Reimplemented from MWWorld::StoreBase.
iterator MWWorld::Store< T >::end | ( | ) | const [inline] |
bool MWWorld::Store< T >::erase | ( | const std::string & | id | ) | [inline] |
bool MWWorld::Store< T >::erase | ( | const T & | item | ) | [inline] |
bool MWWorld::Store< T >::eraseStatic | ( | const std::string & | id | ) | [inline, virtual] |
Reimplemented from MWWorld::StoreBase.
const T* MWWorld::Store< T >::find | ( | const std::string & | id | ) | const [inline] |
const T* MWWorld::Store< T >::findRandom | ( | const std::string & | id | ) | const [inline] |
Returns a random record that starts with the named ID. An exception is thrown if none are found.
size_t MWWorld::Store< T >::getSize | ( | ) | const [inline, virtual] |
Implements MWWorld::StoreBase.
T* MWWorld::Store< T >::insert | ( | const T & | item | ) | [inline] |
T* MWWorld::Store< T >::insertStatic | ( | const T & | item | ) | [inline] |
void MWWorld::Store< T >::listIdentifier | ( | std::vector< std::string > & | list | ) | const [inline, virtual] |
Reimplemented from MWWorld::StoreBase.
void MWWorld::Store< T >::load | ( | ESM::ESMReader & | esm, |
const std::string & | id | ||
) | [inline, virtual] |
Implements MWWorld::StoreBase.
void MWWorld::Store< ESM::Dialogue >::load | ( | ESM::ESMReader & | esm, |
const std::string & | id | ||
) | [inline, virtual] |
Implements MWWorld::StoreBase.
void MWWorld::Store< ESM::Script >::load | ( | ESM::ESMReader & | esm, |
const std::string & | id | ||
) | [inline, virtual] |
Implements MWWorld::StoreBase.
void MWWorld::Store< ESM::StartScript >::load | ( | ESM::ESMReader & | esm, |
const std::string & | id | ||
) | [inline, virtual] |
Implements MWWorld::StoreBase.
const T* MWWorld::Store< T >::search | ( | const std::string & | id | ) | const [inline] |
const T* MWWorld::Store< T >::searchRandom | ( | const std::string & | id | ) | const [inline] |
Returns a random record that starts with the named ID, or NULL if not found.
void MWWorld::Store< T >::setUp | ( | ) | [inline, virtual] |
Reimplemented from MWWorld::StoreBase.
friend class ESMStore [friend] |
std::map<std::string, T> MWWorld::Store< T >::mDynamic [private] |
std::vector<T *> MWWorld::Store< T >::mShared [private] |
std::map<std::string, T> MWWorld::Store< T >::mStatic [private] |