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
CSMWorld::SubCellCollection< T, AT > Class Template Reference

Single type collection of top level records that are associated with cells. More...

#include <pathgridcheck.hpp>

Inheritance diagram for CSMWorld::SubCellCollection< T, AT >:
Collaboration diagram for CSMWorld::SubCellCollection< T, AT >:

Public Member Functions

 SubCellCollection (const IdCollection< Cell > &cells)
 
- Public Member Functions inherited from CSMWorld::NestedIdCollection< ESXRecordT, IdAccessorT >
 NestedIdCollection ()
 
 ~NestedIdCollection ()
 
virtual void addNestedRow (int row, int column, int position)
 
virtual void removeNestedRows (int row, int column, int subRow)
 
virtual QVariant getNestedData (int row, int column, int subRow, int subColumn) const
 
virtual void setNestedData (int row, int column, const QVariant &data, int subRow, int subColumn)
 
virtual NestedTableWrapperBasenestedTable (int row, int column) const
 
virtual void setNestedTable (int row, int column, const NestedTableWrapperBase &nestedTable)
 
virtual int getNestedRowsCount (int row, int column) const
 
virtual int getNestedColumnsCount (int row, int column) const
 
virtual NestableColumngetNestableColumn (int column)
 
void addAdapter (std::pair< const ColumnBase *, NestedColumnAdapter< ESXRecordT > * > adapter)
 
- Public Member Functions inherited from CSMWorld::IdCollection< ESXRecordT, IdAccessorT >
int load (ESM::ESMReader &reader, bool base)
 
int load (const ESXRecordT &record, bool base, int index=-2)
 
bool tryDelete (const std::string &id)
 
- Public Member Functions inherited from CSMWorld::Collection< ESXRecordT, IdAccessorT >
 Collection ()
 
virtual ~Collection ()
 
void add (const ESXRecordT &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
< ESXRecordT > & 
getRecord (const std::string &id) const
 
virtual const Record
< ESXRecordT > & 
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< ESXRecordT > *column)
 
void setRecord (int index, const Record< ESXRecordT > &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
 
- Public Member Functions inherited from CSMWorld::NestedCollection
 NestedCollection ()
 
virtual ~NestedCollection ()
 
virtual int searchNestedColumnIndex (int parentColumn, Columns::ColumnId id)
 
virtual int findNestedColumnIndex (int parentColumn, Columns::ColumnId id)
 

Private Member Functions

virtual void loadRecord (ESXRecordT &record, ESM::ESMReader &reader, bool &isDeleted)
 

Private Attributes

const IdCollection< Cell > & mCells
 

Additional Inherited Members

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

Detailed Description

template<typename T, typename AT>
class CSMWorld::SubCellCollection< T, AT >

Single type collection of top level records that are associated with cells.

Constructor & Destructor Documentation

template<typename ESXRecordT , typename IdAccessorT >
CSMWorld::SubCellCollection< ESXRecordT, IdAccessorT >::SubCellCollection ( const IdCollection< Cell > &  cells)

Member Function Documentation

template<typename ESXRecordT , typename IdAccessorT >
void CSMWorld::SubCellCollection< ESXRecordT, IdAccessorT >::loadRecord ( ESXRecordT &  record,
ESM::ESMReader reader,
bool isDeleted 
)
privatevirtual

Member Data Documentation

template<typename T, typename AT>
const IdCollection<Cell>& CSMWorld::SubCellCollection< T, AT >::mCells
private

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