OpenMW
|
Base class for record collections. More...
#include <collectionbase.hpp>
Public Member Functions | |
CollectionBase () | |
virtual | ~CollectionBase () |
virtual int | getSize () const =0 |
virtual std::string | getId (int index) const =0 |
virtual int | getIndex (const std::string &id) const =0 |
virtual int | getColumns () const =0 |
virtual const ColumnBase & | getColumn (int column) const =0 |
virtual QVariant | getData (int index, int column) const =0 |
virtual void | setData (int index, int column, const QVariant &data)=0 |
virtual void | removeRows (int index, int count)=0 |
< Merge modified into base. | |
virtual void | appendBlankRecord (const std::string &id, UniversalId::Type type=UniversalId::Type_None)=0 |
virtual int | searchId (const std::string &id) const =0 |
virtual void | replace (int index, const RecordBase &record)=0 |
virtual void | appendRecord (const RecordBase &record, UniversalId::Type type=UniversalId::Type_None)=0 |
If the record type does not match, an exception is thrown. | |
virtual const RecordBase & | getRecord (const std::string &id) const =0 |
virtual const RecordBase & | getRecord (int index) const =0 |
virtual int | getAppendIndex (const std::string &id, UniversalId::Type type=UniversalId::Type_None) const =0 |
virtual std::vector< std::string > | getIds (bool listDeleted=true) const =0 |
virtual bool | reorderRows (int baseIndex, const std::vector< int > &newOrder)=0 |
int | searchColumnIndex (Columns::ColumnId id) const |
Return index of column with the given id. If no such column exists, -1 is returned. | |
int | findColumnIndex (Columns::ColumnId id) const |
Private Member Functions | |
CollectionBase (const CollectionBase &) | |
CollectionBase & | operator= (const CollectionBase &) |
Base class for record collections.
CSMWorld::CollectionBase::CollectionBase | ( | const CollectionBase & | ) | [private] |
CSMWorld::CollectionBase::~CollectionBase | ( | ) | [virtual] |
virtual void CSMWorld::CollectionBase::appendBlankRecord | ( | const std::string & | id, |
UniversalId::Type | type = UniversalId::Type_None |
||
) | [pure virtual] |
type | Will be ignored, unless the collection supports multiple record types |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual void CSMWorld::CollectionBase::appendRecord | ( | const RecordBase & | record, |
UniversalId::Type | type = UniversalId::Type_None |
||
) | [pure virtual] |
If the record type does not match, an exception is thrown.
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
int CSMWorld::CollectionBase::findColumnIndex | ( | Columns::ColumnId | id | ) | const |
Return index of column with the given id. If no such column exists, an exception is thrown.
virtual int CSMWorld::CollectionBase::getAppendIndex | ( | const std::string & | id, |
UniversalId::Type | type = UniversalId::Type_None |
||
) | const [pure virtual] |
type | Will be ignored, unless the collection supports multiple record types |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, CSMWorld::RefIdCollection, and CSMWorld::InfoCollection.
virtual const ColumnBase& CSMWorld::CollectionBase::getColumn | ( | int | column | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual int CSMWorld::CollectionBase::getColumns | ( | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual QVariant CSMWorld::CollectionBase::getData | ( | int | index, |
int | column | ||
) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual std::string CSMWorld::CollectionBase::getId | ( | int | index | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual std::vector<std::string> CSMWorld::CollectionBase::getIds | ( | bool | listDeleted = true | ) | const [pure virtual] |
Return a sorted collection of all IDs
listDeleted | include deleted record in the list |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual int CSMWorld::CollectionBase::getIndex | ( | const std::string & | id | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual const RecordBase& CSMWorld::CollectionBase::getRecord | ( | const std::string & | id | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual const RecordBase& CSMWorld::CollectionBase::getRecord | ( | int | index | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual int CSMWorld::CollectionBase::getSize | ( | ) | const [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
CollectionBase& CSMWorld::CollectionBase::operator= | ( | const CollectionBase & | ) | [private] |
virtual void CSMWorld::CollectionBase::removeRows | ( | int | index, |
int | count | ||
) | [pure virtual] |
< Merge modified into base.
< Remove records that are flagged as erased.
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual bool CSMWorld::CollectionBase::reorderRows | ( | int | baseIndex, |
const std::vector< int > & | newOrder | ||
) | [pure virtual] |
Reorder the rows [baseIndex, baseIndex+newOrder.size()) according to the indices given in newOrder (baseIndex+newOrder[0] specifies the new index of row baseIndex).
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, CSMWorld::RefIdCollection, and CSMWorld::InfoCollection.
virtual void CSMWorld::CollectionBase::replace | ( | int | index, |
const RecordBase & | record | ||
) | [pure virtual] |
If the record type does not match, an exception is thrown.
type | Will be ignored, unless the collection supports multiple record types |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
int CSMWorld::CollectionBase::searchColumnIndex | ( | Columns::ColumnId | id | ) | const |
Return index of column with the given id. If no such column exists, -1 is returned.
virtual int CSMWorld::CollectionBase::searchId | ( | const std::string & | id | ) | const [pure virtual] |
Search record with id.
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.
virtual void CSMWorld::CollectionBase::setData | ( | int | index, |
int | column, | ||
const QVariant & | data | ||
) | [pure virtual] |
Implemented in CSMWorld::Collection< ESXRecordT, IdAccessorT >, CSMWorld::Collection< ESM::Spell, IdAccessor< ESM::Spell > >, CSMWorld::Collection< ESM::Dialogue, IdAccessor< ESM::Dialogue > >, CSMWorld::Collection< ESM::Script, IdAccessor< ESM::Script > >, CSMWorld::Collection< ESM::Race, IdAccessor< ESM::Race > >, CSMWorld::Collection< Cell >, CSMWorld::Collection< ESM::GameSetting, IdAccessor< ESM::GameSetting > >, CSMWorld::Collection< ESM::Faction, IdAccessor< ESM::Faction > >, CSMWorld::Collection< ESM::Sound, IdAccessor< ESM::Sound > >, CSMWorld::Collection< CSMFilter::Filter, IdAccessor< CSMFilter::Filter > >, CSMWorld::Collection< ESM::Global, IdAccessor< ESM::Global > >, CSMWorld::Collection< ESM::Region, IdAccessor< ESM::Region > >, CSMWorld::Collection< ESM::Class, IdAccessor< ESM::Class > >, CSMWorld::Collection< CellRef >, CSMWorld::Collection< Info, IdAccessor< Info > >, CSMWorld::Collection< ESM::BirthSign, IdAccessor< ESM::BirthSign > >, CSMWorld::Collection< Cell, IdAccessor< Cell > >, CSMWorld::Collection< ESM::Skill, IdAccessor< ESM::Skill > >, and CSMWorld::RefIdCollection.