OpenMW
Classes | Public Types | Public Member Functions | Protected Attributes
MWWorld::IndexedStore< T > Class Template Reference

#include <store.hpp>

List of all members.

Classes

struct  Compare

Public Types

typedef std::vector< T >
::const_iterator 
iterator

Public Member Functions

 IndexedStore ()
 IndexedStore (unsigned int size)
iterator begin () const
iterator end () const
void load (ESM::ESMReader &esm)
int getSize () const
void setUp ()
const T * search (int index) const
const T * find (int index) const

Protected Attributes

std::vector< T > mStatic

template<class T>
class MWWorld::IndexedStore< T >


Member Typedef Documentation

template<class T>
typedef std::vector<T>::const_iterator MWWorld::IndexedStore< T >::iterator

Constructor & Destructor Documentation

template<class T>
MWWorld::IndexedStore< T >::IndexedStore ( ) [inline]
template<class T>
MWWorld::IndexedStore< T >::IndexedStore ( unsigned int  size) [inline]

Member Function Documentation

template<class T>
iterator MWWorld::IndexedStore< T >::begin ( ) const [inline]
template<class T>
iterator MWWorld::IndexedStore< T >::end ( ) const [inline]
template<class T>
const T* MWWorld::IndexedStore< T >::find ( int  index) const [inline]
template<class T>
int MWWorld::IndexedStore< T >::getSize ( ) const [inline]
template<class T>
void MWWorld::IndexedStore< T >::load ( ESM::ESMReader esm) [inline]
Todo:
refine loading order
template<class T>
const T* MWWorld::IndexedStore< T >::search ( int  index) const [inline]
template<class T>
void MWWorld::IndexedStore< T >::setUp ( ) [inline]
Note:
This method sorts indexed values for further searches. Every loaded item is present in storage, but latest loaded shadows any previous while searching. If memory cost will be too high, it is possible to remove unused values.

Reimplemented in MWWorld::Store< ESM::Attribute >.


Member Data Documentation

template<class T>
std::vector<T> MWWorld::IndexedStore< T >::mStatic [protected]

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