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 RecordBasegetRecord (const LocalIndex &index) const
RecordBasegetRecord (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::PotionmPotions
RefIdDataContainer
< ESM::Apparatus
mApparati
RefIdDataContainer< ESM::ArmormArmors
RefIdDataContainer< ESM::BookmBooks
RefIdDataContainer< ESM::ClothingmClothing
RefIdDataContainer
< ESM::Container
mContainers
RefIdDataContainer< ESM::CreaturemCreatures
RefIdDataContainer< ESM::DoormDoors
RefIdDataContainer
< ESM::Ingredient
mIngredients
RefIdDataContainer
< ESM::CreatureLevList
mCreatureLevelledLists
RefIdDataContainer
< ESM::ItemLevList
mItemLevelledLists
RefIdDataContainer< ESM::LightmLights
RefIdDataContainer< ESM::LockpickmLockpicks
RefIdDataContainer
< ESM::Miscellaneous
mMiscellaneous
RefIdDataContainer< ESM::NPCmNpcs
RefIdDataContainer< ESM::ProbemProbes
RefIdDataContainer< ESM::RepairmRepairs
RefIdDataContainer< ESM::StaticmStatics
RefIdDataContainer< ESM::WeaponmWeapons
std::map< std::string, LocalIndexmIndex
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: