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

References in cells. More...

#include <refcollection.hpp>

Inheritance diagram for CSMWorld::RefCollection:
Collaboration diagram for CSMWorld::RefCollection:

Public Member Functions

 RefCollection (Collection< Cell > &cells)
 
void load (ESM::ESMReader &reader, int cellIndex, bool base, std::map< ESM::RefNum, std::string > &cache, CSMDoc::Messages &messages)
 Load a sequence of references. More...
 
std::string getNewId ()
 
- Public Member Functions inherited from CSMWorld::Collection< CellRef >
 Collection ()
 
virtual ~Collection ()
 
void add (const CellRef &record)
 Add a new record (modified) More...
 
virtual int getSize () const
 
virtual std::string getId (int index) const
 
virtual int getIndex (const std::string &id) const
 
virtual int getColumns () const
 
virtual QVariant getData (int index, int column) const
 
virtual void setData (int index, int column, const QVariant &data)
 
virtual const ColumnBasegetColumn (int column) const
 
virtual void merge ()
 Merge modified into base. More...
 
virtual void purge ()
 Remove records that are flagged as erased. More...
 
virtual void removeRows (int index, int count)
 < Merge modified into base. More...
 
virtual void appendBlankRecord (const std::string &id, UniversalId::Type type=UniversalId::Type_None)
 
virtual void cloneRecord (const std::string &origin, const std::string &destination, const UniversalId::Type type)
 
virtual int searchId (const std::string &id) const
 
virtual void replace (int index, const RecordBase &record)
 
virtual void appendRecord (const RecordBase &record, UniversalId::Type type=UniversalId::Type_None)
 
virtual const Record< CellRef > & getRecord (const std::string &id) const
 
virtual const Record< CellRef > & getRecord (int index) const
 
virtual int getAppendIndex (const std::string &id, UniversalId::Type type=UniversalId::Type_None) const
 
virtual std::vector< std::string > getIds (bool listDeleted=true) const
 
virtual void insertRecord (const RecordBase &record, int index, UniversalId::Type type=UniversalId::Type_None)
 
virtual bool reorderRows (int baseIndex, const std::vector< int > &newOrder)
 
void addColumn (Column< CellRef > *column)
 
void setRecord (int index, const Record< CellRef > &record)
 
NestableColumngetNestableColumn (int column) const
 
- Public Member Functions inherited from CSMWorld::CollectionBase
 CollectionBase ()
 
virtual ~CollectionBase ()
 
int searchColumnIndex (Columns::ColumnId id) const
 Return index of column with the given id. If no such column exists, -1 is returned. More...
 
int findColumnIndex (Columns::ColumnId id) const
 

Private Attributes

Collection< Cell > & mCells
 
int mNextId
 

Additional Inherited Members

- Public Types inherited from CSMWorld::Collection< CellRef >
typedef CellRef ESXRecord
 
- Protected Member Functions inherited from CSMWorld::Collection< CellRef >
const std::map< std::string,
int > & 
getIdMap () const
 
const std::vector< Record
< CellRef > > & 
getRecords () const
 
bool reorderRowsImp (int baseIndex, const std::vector< int > &newOrder)
 

Detailed Description

References in cells.

Constructor & Destructor Documentation

CSMWorld::RefCollection::RefCollection ( Collection< Cell > &  cells)
inline

Member Function Documentation

std::string CSMWorld::RefCollection::getNewId ( )

Here is the caller graph for this function:

void CSMWorld::RefCollection::load ( ESM::ESMReader reader,
int  cellIndex,
bool  base,
std::map< ESM::RefNum, std::string > &  cache,
CSMDoc::Messages messages 
)

Load a sequence of references.

Here is the call graph for this function:

Member Data Documentation

Collection<Cell>& CSMWorld::RefCollection::mCells
private
int CSMWorld::RefCollection::mNextId
private

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