OpenMW
Public Member Functions | Public Attributes
MWWorld::LiveCellRef< X > Struct Template Reference

#include <livecellref.hpp>

List of all members.

Public Member Functions

 LiveCellRef (const ESM::CellRef &cref, const X *b=NULL)
 LiveCellRef (const X *b=NULL)

Public Attributes

const X * mBase

Detailed Description

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

A reference to one object (of any type) in a cell.

Constructing this with a CellRef instance in the constructor means that in practice (where D is RefData) the possibly mutable data is copied across to mData. If later adding data (such as position) to CellRef this would have to be manually copied across.


Constructor & Destructor Documentation

template<typename X>
MWWorld::LiveCellRef< X >::LiveCellRef ( const ESM::CellRef cref,
const X *  b = NULL 
) [inline]
template<typename X>
MWWorld::LiveCellRef< X >::LiveCellRef ( const X *  b = NULL) [inline]

Member Data Documentation

template<typename X>
const X* MWWorld::LiveCellRef< X >::mBase

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