|
OpenMW
|
#include <infocollection.hpp>
Public Types | |
| typedef std::vector< Record < Info > >::const_iterator | RecordConstIterator |
| typedef std::pair < RecordConstIterator, RecordConstIterator > | Range |
Public Member Functions | |
| virtual int | getAppendIndex (const std::string &id, UniversalId::Type type=UniversalId::Type_None) const |
| virtual bool | reorderRows (int baseIndex, const std::vector< int > &newOrder) |
| void | load (ESM::ESMReader &reader, bool base, const ESM::Dialogue &dialogue) |
| Range | getTopicRange (const std::string &topic) const |
Private Member Functions | |
| void | load (const Info &record, bool base) |
| int | getIndex (const std::string &id, const std::string &topic) const |
| typedef std::pair<RecordConstIterator, RecordConstIterator> CSMWorld::InfoCollection::Range |
| typedef std::vector<Record<Info> >::const_iterator CSMWorld::InfoCollection::RecordConstIterator |
| int CSMWorld::InfoCollection::getAppendIndex | ( | const std::string & | id, |
| UniversalId::Type | type = UniversalId::Type_None |
||
| ) | const [virtual] |
| type | Will be ignored, unless the collection supports multiple record types |
Reimplemented from CSMWorld::Collection< Info, IdAccessor< Info > >.
| int CSMWorld::InfoCollection::getIndex | ( | const std::string & | id, |
| const std::string & | topic | ||
| ) | const [private] |
Return index for record id or -1 (if not present; deleted records are considered)
| id | info ID without topic prefix |
| CSMWorld::InfoCollection::Range CSMWorld::InfoCollection::getTopicRange | ( | const std::string & | topic | ) | const |
Return iterators that point to the beginning and past the end of the range for the given topic.
| void CSMWorld::InfoCollection::load | ( | const Info & | record, |
| bool | base | ||
| ) | [private] |
| void CSMWorld::InfoCollection::load | ( | ESM::ESMReader & | reader, |
| bool | base, | ||
| const ESM::Dialogue & | dialogue | ||
| ) |
| bool CSMWorld::InfoCollection::reorderRows | ( | int | baseIndex, |
| const std::vector< int > & | newOrder | ||
| ) | [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).
Reimplemented from CSMWorld::Collection< Info, IdAccessor< Info > >.
1.7.6.1