OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Types | Private Attributes | Friends | List of all members
MWWorld::Store< T > Class Template Reference

#include <store.hpp>

Inheritance diagram for MWWorld::Store< T >:
Collaboration diagram for MWWorld::Store< T >:

Public Types

typedef SharedIterator< T > iterator
 

Public Member Functions

 Store ()
 
 Store (const Store< T > &orig)
 
virtual void clearDynamic ()
 
void setUp ()
 
const T * search (const std::string &id) const
 
bool isDynamic (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
 
iterator begin () const
 
iterator end () const
 
size_t getSize () const
 
int getDynamicSize () 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)
 
RecordId load (ESM::ESMReader &esm)
 
void write (ESM::ESMWriter &writer, Loading::Listener &progress) const
 
RecordId read (ESM::ESMReader &reader)
 Read into dynamic storage. More...
 
template<>
void setUp ()
 
template<>
RecordId load (ESM::ESMReader &esm)
 
- Public Member Functions inherited from MWWorld::StoreBase
virtual ~StoreBase ()
 

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
 

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<typename T >
MWWorld::Store< T >::Store ( )
template<typename T>
MWWorld::Store< T >::Store ( const Store< T > &  orig)

Member Function Documentation

template<typename T >
Store< T >::iterator MWWorld::Store< T >::begin ( ) const

Here is the caller graph for this function:

template<typename T >
void MWWorld::Store< T >::clearDynamic ( )
virtual

Reimplemented from MWWorld::StoreBase.

template<typename T >
Store< T >::iterator MWWorld::Store< T >::end ( ) const

Here is the caller graph for this function:

template<typename T >
bool MWWorld::Store< T >::erase ( const std::string &  id)

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
bool MWWorld::Store< T >::erase ( const T &  item)
template<typename T >
bool MWWorld::Store< T >::eraseStatic ( const std::string &  id)
virtual

Reimplemented from MWWorld::StoreBase.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
const T * MWWorld::Store< T >::find ( const std::string &  id) const
template<typename T >
const T * MWWorld::Store< T >::findRandom ( const std::string &  id) const

Returns a random record that starts with the named ID. An exception is thrown if none are found.

template<typename T >
int MWWorld::Store< T >::getDynamicSize ( ) const
virtual

Reimplemented from MWWorld::StoreBase.

Here is the caller graph for this function:

template<typename T >
size_t MWWorld::Store< T >::getSize ( ) const
virtual

Implements MWWorld::StoreBase.

Here is the caller graph for this function:

template<typename T>
T * MWWorld::Store< T >::insert ( const T &  item)

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
T * MWWorld::Store< T >::insertStatic ( const T &  item)

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
bool MWWorld::Store< T >::isDynamic ( const std::string &  id) const

Does the record with this ID come from the dynamic store?

Here is the caller graph for this function:

template<typename T >
void MWWorld::Store< T >::listIdentifier ( std::vector< std::string > &  list) const
virtual
Note
The record identifiers are listed in the order that the records were defined by the content files.

Reimplemented from MWWorld::StoreBase.

template<typename T >
RecordId MWWorld::Store< T >::load ( ESM::ESMReader esm)
virtual

Implements MWWorld::StoreBase.

Here is the call graph for this function:

Here is the caller graph for this function:

template<>
RecordId MWWorld::Store< ESM::Dialogue >::load ( ESM::ESMReader esm)
inlinevirtual

Implements MWWorld::StoreBase.

Here is the call graph for this function:

template<typename T >
RecordId MWWorld::Store< T >::read ( ESM::ESMReader reader)
virtual

Read into dynamic storage.

Reimplemented from MWWorld::StoreBase.

template<typename T >
const T * MWWorld::Store< T >::search ( const std::string &  id) const

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
const T * MWWorld::Store< T >::searchRandom ( const std::string &  id) const

Returns a random record that starts with the named ID, or NULL if not found.

Here is the call graph for this function:

template<typename T >
void MWWorld::Store< T >::setUp ( )
virtual

Reimplemented from MWWorld::StoreBase.

Here is the caller graph for this function:

template<>
void MWWorld::Store< ESM::Dialogue >::setUp ( )
virtual

Reimplemented from MWWorld::StoreBase.

Here is the call graph for this function:

template<typename T >
void MWWorld::Store< T >::write ( ESM::ESMWriter writer,
Loading::Listener progress 
) const
virtual

Reimplemented from MWWorld::StoreBase.

Here is the call graph for this function:

Here is the caller graph for this function:

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 files: