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::ConstPtr Class Reference

Pointer to a const LiveCellRef. More...

#include <ptr.hpp>

Collaboration diagram for MWWorld::ConstPtr:

Public Member Functions

 ConstPtr (const MWWorld::LiveCellRefBase *liveCellRef=0, const CellStore *cell=0)
 
 ConstPtr (const MWWorld::Ptr &ptr)
 
bool isEmpty () const
 
const std::string & getTypeName () const
 
const ClassgetClass () const
 
template<typename T >
const MWWorld::LiveCellRef< T > * get () const
 
const MWWorld::LiveCellRefBasegetBase () const
 
const MWWorld::CellRefgetCellRef () const
 
const RefDatagetRefData () const
 
const CellStoregetCell () const
 
bool isInCell () const
 
void setContainerStore (const ContainerStore *store)
 Must not be called on references that are in a cell. More...
 
const 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

const MWWorld::LiveCellRefBasemRef
 
const CellStoremCell
 
const ContainerStoremContainerStore
 

Detailed Description

Pointer to a const LiveCellRef.

Note
a Ptr can be implicitely converted to a ConstPtr, but you can not convert a ConstPtr to a Ptr.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Here is the call graph for this function:

const MWWorld::LiveCellRefBase * MWWorld::ConstPtr::getBase ( ) const
const CellStore* MWWorld::ConstPtr::getCell ( ) const
inline

Here is the caller graph for this function:

const MWWorld::CellRef& MWWorld::ConstPtr::getCellRef ( ) const
inline

Here is the caller graph for this function:

const Class& MWWorld::ConstPtr::getClass ( ) const
inline

Here is the caller graph for this function:

const MWWorld::ContainerStore * MWWorld::ConstPtr::getContainerStore ( ) const

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

Here is the caller graph for this function:

const RefData& MWWorld::ConstPtr::getRefData ( ) const
inline

Here is the caller graph for this function:

const std::string & MWWorld::ConstPtr::getTypeName ( ) const

Here is the caller graph for this function:

bool MWWorld::ConstPtr::isEmpty ( ) const
inline

Here is the caller graph for this function:

bool MWWorld::ConstPtr::isInCell ( ) const
inline

Here is the caller graph for this function:

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

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

void MWWorld::ConstPtr::setContainerStore ( const ContainerStore store)

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

Member Data Documentation

const CellStore* MWWorld::ConstPtr::mCell
const ContainerStore* MWWorld::ConstPtr::mContainerStore
const MWWorld::LiveCellRefBase* MWWorld::ConstPtr::mRef

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