OpenMW
Public Types | Public Member Functions | Private Member Functions
CSMWorld::InfoCollection Class Reference

#include <infocollection.hpp>

List of all members.

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

Member Typedef Documentation

typedef std::vector<Record<Info> >::const_iterator CSMWorld::InfoCollection::RecordConstIterator

Member Function Documentation

int CSMWorld::InfoCollection::getAppendIndex ( const std::string &  id,
UniversalId::Type  type = UniversalId::Type_None 
) const [virtual]
Parameters:
typeWill 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)

Parameters:
idinfo ID without topic prefix

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 
)
Todo:
report the problem to the user
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).

Returns:
Success?

Reimplemented from CSMWorld::Collection< Info, IdAccessor< Info > >.


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