OpenMW
Classes | Public Types | Public Member Functions | Private Types | Private Attributes | Friends
MWWorld::Store< T > Class Template Reference

#include <store.hpp>

List of all members.

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

template<class T>
class MWWorld::Store< T >


Member Typedef Documentation

template<class T>
typedef std::map<std::string, T> MWWorld::Store< T >::Dynamic [private]
template<class T>
typedef SharedIterator<T> MWWorld::Store< T >::iterator
template<class T>
typedef std::map<std::string, T> MWWorld::Store< T >::Static [private]

Constructor & Destructor Documentation

template<class T>
MWWorld::Store< T >::Store ( ) [inline]
template<class T>
MWWorld::Store< T >::Store ( const Store< T > &  orig) [inline]

Member Function Documentation

template<class T>
iterator MWWorld::Store< T >::begin ( ) const [inline]
template<class T>
virtual void MWWorld::Store< T >::clearDynamic ( ) [inline, virtual]

Reimplemented from MWWorld::StoreBase.

template<class T>
iterator MWWorld::Store< T >::end ( ) const [inline]
template<class T>
bool MWWorld::Store< T >::erase ( const std::string &  id) [inline]
template<class T>
bool MWWorld::Store< T >::erase ( const T &  item) [inline]
template<class T>
bool MWWorld::Store< T >::eraseStatic ( const std::string &  id) [inline, virtual]

Reimplemented from MWWorld::StoreBase.

template<class T>
const T* MWWorld::Store< T >::find ( const std::string &  id) const [inline]
template<class T>
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.

template<class T>
size_t MWWorld::Store< T >::getSize ( ) const [inline, virtual]

Implements MWWorld::StoreBase.

template<class T>
T* MWWorld::Store< T >::insert ( const T &  item) [inline]
template<class T>
T* MWWorld::Store< T >::insertStatic ( const T &  item) [inline]
template<class T>
void MWWorld::Store< T >::listIdentifier ( std::vector< std::string > &  list) const [inline, virtual]

Reimplemented from MWWorld::StoreBase.

template<class T>
void MWWorld::Store< T >::load ( ESM::ESMReader esm,
const std::string &  id 
) [inline, virtual]

Implements MWWorld::StoreBase.

template<>
void MWWorld::Store< ESM::Dialogue >::load ( ESM::ESMReader esm,
const std::string &  id 
) [inline, virtual]

Implements MWWorld::StoreBase.

template<>
void MWWorld::Store< ESM::Script >::load ( ESM::ESMReader esm,
const std::string &  id 
) [inline, virtual]

Implements MWWorld::StoreBase.

template<>
void MWWorld::Store< ESM::StartScript >::load ( ESM::ESMReader esm,
const std::string &  id 
) [inline, virtual]

Implements MWWorld::StoreBase.

template<class T>
const T* MWWorld::Store< T >::search ( const std::string &  id) const [inline]
template<class T>
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.

template<class T>
void MWWorld::Store< T >::setUp ( ) [inline, virtual]

Reimplemented from MWWorld::StoreBase.


Friends And Related Function Documentation

template<class T>
friend class ESMStore [friend]

Member Data Documentation

template<class T>
std::map<std::string, T> MWWorld::Store< T >::mDynamic [private]
template<class T>
std::vector<T *> MWWorld::Store< T >::mShared [private]
template<class T>
std::map<std::string, T> MWWorld::Store< T >::mStatic [private]

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