OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
CSMWorld::RefIdDataContainer< RecordT > Struct Template Reference

#include <refiddata.hpp>

Inheritance diagram for CSMWorld::RefIdDataContainer< RecordT >:
Collaboration diagram for CSMWorld::RefIdDataContainer< RecordT >:

Public Member Functions

virtual int getSize () const
 
virtual const RecordBasegetRecord (int index) const
 
virtual RecordBasegetRecord (int index)
 
virtual void appendRecord (const std::string &id, bool base)
 
virtual void insertRecord (RecordBase &record)
 
virtual int load (ESM::ESMReader &reader, bool base)
 
virtual void erase (int index, int count)
 
virtual std::string getId (int index) const
 
virtual void save (int index, ESM::ESMWriter &writer) const
 
- Public Member Functions inherited from CSMWorld::RefIdDataContainerBase
virtual ~RefIdDataContainerBase ()
 

Public Attributes

std::vector< Record< RecordT > > mContainer
 

Member Function Documentation

template<typename RecordT >
void CSMWorld::RefIdDataContainer< RecordT >::appendRecord ( const std::string &  id,
bool  base 
)
virtual
template<typename RecordT >
void CSMWorld::RefIdDataContainer< RecordT >::erase ( int  index,
int  count 
)
virtual
template<typename RecordT >
std::string CSMWorld::RefIdDataContainer< RecordT >::getId ( int  index) const
virtual
template<typename RecordT >
const RecordBase & CSMWorld::RefIdDataContainer< RecordT >::getRecord ( int  index) const
virtual

Implements CSMWorld::RefIdDataContainerBase.

Here is the caller graph for this function:

template<typename RecordT >
RecordBase & CSMWorld::RefIdDataContainer< RecordT >::getRecord ( int  index)
virtual
template<typename RecordT >
int CSMWorld::RefIdDataContainer< RecordT >::getSize ( ) const
virtual
template<typename RecordT >
void CSMWorld::RefIdDataContainer< RecordT >::insertRecord ( RecordBase record)
virtual
template<typename RecordT >
int CSMWorld::RefIdDataContainer< RecordT >::load ( ESM::ESMReader reader,
bool  base 
)
virtual
Returns
index of a loaded record or -1 if no record was loaded
Todo:
report the problem to the user

Implements CSMWorld::RefIdDataContainerBase.

Here is the call graph for this function:

template<typename RecordT >
void CSMWorld::RefIdDataContainer< RecordT >::save ( int  index,
ESM::ESMWriter writer 
) const
virtual

Implements CSMWorld::RefIdDataContainerBase.

Here is the call graph for this function:

Member Data Documentation

template<typename RecordT>
std::vector<Record<RecordT> > CSMWorld::RefIdDataContainer< RecordT >::mContainer

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