OpenMW
Public Types | Public Member Functions | Private Member Functions | Private Attributes
CSMWorld::RefIdData Class Reference

#include <refiddata.hpp>

List of all members.

Public Types

typedef std::pair< int,
UniversalId::Type > 
LocalIndex

Public Member Functions

 RefIdData ()
LocalIndex globalToLocalIndex (int index) const
int localToGlobalIndex (const LocalIndex &index) const
LocalIndex searchId (const std::string &id) const
void erase (int index, int count)
const RecordBase & getRecord (const LocalIndex &index) const
RecordBase & getRecord (const LocalIndex &index)
void appendRecord (UniversalId::Type type, const std::string &id)
int getAppendIndex (UniversalId::Type type) const
void load (const LocalIndex &index, ESM::ESMReader &reader, bool base)
int getSize () const
std::vector< std::string > getIds (bool listDeleted=true) const
void save (int index, ESM::ESMWriter &writer) const

Private Member Functions

void erase (const LocalIndex &index, int count)
 Must not spill over into another type.

Private Attributes

RefIdDataContainer
< ESM::Activator > 
mActivators
RefIdDataContainer< ESM::Potion > mPotions
RefIdDataContainer
< ESM::Apparatus > 
mApparati
RefIdDataContainer< ESM::Armor > mArmors
RefIdDataContainer< ESM::Book > mBooks
RefIdDataContainer< ESM::Clothing > mClothing
RefIdDataContainer
< ESM::Container > 
mContainers
RefIdDataContainer< ESM::Creature > mCreatures
RefIdDataContainer< ESM::Door > mDoors
RefIdDataContainer
< ESM::Ingredient > 
mIngredients
RefIdDataContainer
< ESM::CreatureLevList > 
mCreatureLevelledLists
RefIdDataContainer
< ESM::ItemLevList > 
mItemLevelledLists
RefIdDataContainer< ESM::Light > mLights
RefIdDataContainer< ESM::Lockpick > mLockpicks
RefIdDataContainer
< ESM::Miscellaneous > 
mMiscellaneous
RefIdDataContainer< ESM::NPC > mNpcs
RefIdDataContainer< ESM::Probe > mProbes
RefIdDataContainer< ESM::Repair > mRepairs
RefIdDataContainer< ESM::Static > mStatics
RefIdDataContainer< ESM::Weapon > mWeapons
std::map< std::string, LocalIndex > mIndex
std::map< UniversalId::Type,
RefIdDataContainerBase * > 
mRecordContainers

Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void CSMWorld::RefIdData::appendRecord ( UniversalId::Type  type,
const std::string &  id 
)
void CSMWorld::RefIdData::erase ( const LocalIndex &  index,
int  count 
) [private]

Must not spill over into another type.

void CSMWorld::RefIdData::erase ( int  index,
int  count 
)
std::vector< std::string > CSMWorld::RefIdData::getIds ( bool  listDeleted = true) const

Return a sorted collection of all IDs

Parameters:
listDeletedinclude deleted record in the list
void CSMWorld::RefIdData::load ( const LocalIndex &  index,
ESM::ESMReader &  reader,
bool  base 
)
void CSMWorld::RefIdData::save ( int  index,
ESM::ESMWriter &  writer 
) const

Member Data Documentation

std::map<std::string, LocalIndex> CSMWorld::RefIdData::mIndex [private]

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