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

Collection of references of one type. More...

#include <cellreflist.hpp>

Collaboration diagram for MWWorld::CellRefList< X >:

Public Types

typedef LiveCellRef< X > LiveRef
 
typedef std::list< LiveRefList
 

Public Member Functions

void load (ESM::CellRef &ref, bool deleted, const MWWorld::ESMStore &esmStore)
 
LiveRefinsert (const LiveRef &item)
 
void remove (const ESM::RefNum &refNum)
 Remove all references with the given refNum from this list. More...
 

Public Attributes

List mList
 

Detailed Description

template<typename X>
struct MWWorld::CellRefList< X >

Collection of references of one type.

Member Typedef Documentation

template<typename X>
typedef std::list<LiveRef> MWWorld::CellRefList< X >::List
template<typename X>
typedef LiveCellRef<X> MWWorld::CellRefList< X >::LiveRef

Member Function Documentation

template<typename X>
LiveRef& MWWorld::CellRefList< X >::insert ( const LiveRef item)
inline

Here is the caller graph for this function:

template<typename X >
void MWWorld::CellRefList< X >::load ( ESM::CellRef ref,
bool  deleted,
const MWWorld::ESMStore esmStore 
)

Search for the given reference in the given reclist from ESMStore. Insert the reference into the list if a match is found. If not, throw an exception. Moved to cpp file, as we require a custom compare operator for it, and the build will fail with an ugly three-way cyclic header dependence so we need to pass the instantiation of the method to the linker, when all methods are known.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename X>
void MWWorld::CellRefList< X >::remove ( const ESM::RefNum refNum)
inline

Remove all references with the given refNum from this list.

Here is the caller graph for this function:

Member Data Documentation

template<typename X>
List MWWorld::CellRefList< X >::mList

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