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

Cell container. More...

#include <cells.hpp>

Collaboration diagram for MWWorld::Cells:

Public Member Functions

void clear ()
 
 Cells (const MWWorld::ESMStore &store, std::vector< ESM::ESMReader > &reader)
 
CellStoregetExterior (int x, int y)
 
CellStoregetInterior (const std::string &name)
 
CellStoregetCell (const ESM::CellId &id)
 
Ptr getPtr (const std::string &name, CellStore &cellStore, bool searchInContainers=false)
 
Ptr getPtr (const std::string &name)
 
void getExteriorPtrs (const std::string &name, std::vector< MWWorld::Ptr > &out)
 
void getInteriorPtrs (const std::string &name, std::vector< MWWorld::Ptr > &out)
 
int countSavedGameRecords () const
 
void write (ESM::ESMWriter &writer, Loading::Listener &progress) const
 
bool readRecord (ESM::ESMReader &reader, uint32_t type, const std::map< int, int > &contentFileMap)
 

Private Member Functions

 Cells (const Cells &)
 
Cellsoperator= (const Cells &)
 
CellStoregetCellStore (const ESM::Cell *cell)
 
Ptr getPtrAndCache (const std::string &name, CellStore &cellStore)
 
void writeCell (ESM::ESMWriter &writer, CellStore &cell) const
 

Private Attributes

const MWWorld::ESMStoremStore
 
std::vector< ESM::ESMReader > & mReader
 
std::map< std::string, CellStoremInteriors
 
std::map< std::pair< int, int >
, CellStore
mExteriors
 
std::vector< std::pair
< std::string, CellStore * > > 
mIdCache
 
std::size_t mIdCacheIndex
 

Detailed Description

Cell container.

Constructor & Destructor Documentation

MWWorld::Cells::Cells ( const Cells )
private
MWWorld::Cells::Cells ( const MWWorld::ESMStore store,
std::vector< ESM::ESMReader > &  reader 
)

Member Function Documentation

void MWWorld::Cells::clear ( )

Here is the caller graph for this function:

int MWWorld::Cells::countSavedGameRecords ( ) const

Here is the caller graph for this function:

MWWorld::CellStore * MWWorld::Cells::getCell ( const ESM::CellId id)
MWWorld::CellStore * MWWorld::Cells::getCellStore ( const ESM::Cell cell)
private

Here is the call graph for this function:

MWWorld::CellStore * MWWorld::Cells::getExterior ( int  x,
int  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::Cells::getExteriorPtrs ( const std::string &  name,
std::vector< MWWorld::Ptr > &  out 
)

Get all Ptrs referencing name in exterior cells

Note
Due to the current implementation of getPtr this only supports one Ptr per cell.
name must be lower case

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::CellStore * MWWorld::Cells::getInterior ( const std::string &  name)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::Cells::getInteriorPtrs ( const std::string &  name,
std::vector< MWWorld::Ptr > &  out 
)

Get all Ptrs referencing name in interior cells

Note
Due to the current implementation of getPtr this only supports one Ptr per cell.
name must be lower case

Here is the call graph for this function:

MWWorld::Ptr MWWorld::Cells::getPtr ( const std::string &  name,
CellStore cellStore,
bool  searchInContainers = false 
)
Parameters
searchInContainersOnly affect loaded cells.
Note
name must be lower case

Here is the call graph for this function:

Here is the caller graph for this function:

MWWorld::Ptr MWWorld::Cells::getPtr ( const std::string &  name)
Note
name must be lower case

Here is the call graph for this function:

MWWorld::Ptr MWWorld::Cells::getPtrAndCache ( const std::string &  name,
CellStore cellStore 
)
private

Here is the call graph for this function:

Cells& MWWorld::Cells::operator= ( const Cells )
private
bool MWWorld::Cells::readRecord ( ESM::ESMReader reader,
uint32_t  type,
const std::map< int, int > &  contentFileMap 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::Cells::write ( ESM::ESMWriter writer,
Loading::Listener progress 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::Cells::writeCell ( ESM::ESMWriter writer,
CellStore cell 
) const
private

Here is the call graph for this function:

Member Data Documentation

std::map<std::pair<int, int>, CellStore> MWWorld::Cells::mExteriors
mutableprivate
std::vector<std::pair<std::string, CellStore *> > MWWorld::Cells::mIdCache
private
std::size_t MWWorld::Cells::mIdCacheIndex
private
std::map<std::string, CellStore> MWWorld::Cells::mInteriors
mutableprivate
std::vector<ESM::ESMReader>& MWWorld::Cells::mReader
private
const MWWorld::ESMStore& MWWorld::Cells::mStore
private

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