OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
MWWorld::Ptr Class Reference

Pointer to a LiveCellRef. More...

#include <ptr.hpp>

Collaboration diagram for MWWorld::Ptr:

Public Member Functions

 Ptr (MWWorld::LiveCellRefBase *liveCellRef=0, CellStore *cell=0)
 
bool isEmpty () const
 
const std::string & getTypeName () const
 
const ClassgetClass () const
 
template<typename T >
MWWorld::LiveCellRef< T > * get () const
 
MWWorld::LiveCellRefBasegetBase () const
 
MWWorld::CellRefgetCellRef () const
 
RefDatagetRefData () const
 
CellStoregetCell () const
 
bool isInCell () const
 
void setContainerStore (ContainerStore *store)
 Must not be called on references that are in a cell. More...
 
ContainerStoregetContainerStore () const
 May return a 0-pointer, if reference is not in a container. More...
 
 operator const void * ()
 Return a 0-pointer, if Ptr is empty; return a non-0-pointer, if Ptr is not empty. More...
 

Public Attributes

MWWorld::LiveCellRefBasemRef
 
CellStoremCell
 
ContainerStoremContainerStore
 

Detailed Description

Pointer to a LiveCellRef.

Constructor & Destructor Documentation

MWWorld::Ptr::Ptr ( MWWorld::LiveCellRefBase liveCellRef = 0,
CellStore cell = 0 
)
inline

Member Function Documentation

template<typename T >
MWWorld::LiveCellRef<T>* MWWorld::Ptr::get ( ) const
inline

Here is the call graph for this function:

MWWorld::LiveCellRefBase * MWWorld::Ptr::getBase ( ) const

Here is the caller graph for this function:

CellStore* MWWorld::Ptr::getCell ( ) const
inline
MWWorld::CellRef & MWWorld::Ptr::getCellRef ( ) const
const Class& MWWorld::Ptr::getClass ( ) const
inline
MWWorld::ContainerStore * MWWorld::Ptr::getContainerStore ( ) const

May return a 0-pointer, if reference is not in a container.

Here is the caller graph for this function:

MWWorld::RefData & MWWorld::Ptr::getRefData ( ) const
const std::string & MWWorld::Ptr::getTypeName ( ) const

Here is the call graph for this function:

bool MWWorld::Ptr::isEmpty ( ) const
inline
bool MWWorld::Ptr::isInCell ( ) const
inline

Here is the caller graph for this function:

MWWorld::Ptr::operator const void * ( )

Return a 0-pointer, if Ptr is empty; return a non-0-pointer, if Ptr is not empty.

void MWWorld::Ptr::setContainerStore ( ContainerStore store)

Must not be called on references that are in a cell.

Here is the caller graph for this function:

Member Data Documentation

CellStore* MWWorld::Ptr::mCell
ContainerStore* MWWorld::Ptr::mContainerStore
MWWorld::LiveCellRefBase* MWWorld::Ptr::mRef

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