OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMWorld::RefIdData Class Reference

#include <refiddata.hpp>

Collaboration diagram for CSMWorld::RefIdData:

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)
 
void insertRecord (CSMWorld::RecordBase &record, CSMWorld::UniversalId::Type type, const std::string &id)
 
const RecordBasegetRecord (const LocalIndex &index) const
 
RecordBasegetRecord (const LocalIndex &index)
 
void appendRecord (UniversalId::Type type, const std::string &id, bool base)
 
int getAppendIndex (UniversalId::Type type) const
 
void load (ESM::ESMReader &reader, bool base, UniversalId::Type type)
 
int getSize () const
 
std::vector< std::string > getIds (bool listDeleted=true) const
 
void save (int index, ESM::ESMWriter &writer) const
 
const RefIdDataContainer
< ESM::Book > & 
getBooks () const
 
const RefIdDataContainer
< ESM::Activator > & 
getActivators () const
 
const RefIdDataContainer
< ESM::Potion > & 
getPotions () const
 
const RefIdDataContainer
< ESM::Apparatus > & 
getApparati () const
 
const RefIdDataContainer
< ESM::Armor > & 
getArmors () const
 
const RefIdDataContainer
< ESM::Clothing > & 
getClothing () const
 
const RefIdDataContainer
< ESM::Container > & 
getContainers () const
 
const RefIdDataContainer
< ESM::Creature > & 
getCreatures () const
 
const RefIdDataContainer
< ESM::Door > & 
getDoors () const
 
const RefIdDataContainer
< ESM::Ingredient > & 
getIngredients () const
 
const RefIdDataContainer
< ESM::CreatureLevList > & 
getCreatureLevelledLists () const
 
const RefIdDataContainer
< ESM::ItemLevList > & 
getItemLevelledList () const
 
const RefIdDataContainer
< ESM::Light > & 
getLights () const
 
const RefIdDataContainer
< ESM::Lockpick > & 
getLocpicks () const
 
const RefIdDataContainer
< ESM::Miscellaneous > & 
getMiscellaneous () const
 
const RefIdDataContainer
< ESM::NPC > & 
getNPCs () const
 
const RefIdDataContainer
< ESM::Weapon > & 
getWeapons () const
 
const RefIdDataContainer
< ESM::Probe > & 
getProbes () const
 
const RefIdDataContainer
< ESM::Repair > & 
getRepairs () const
 
const RefIdDataContainer
< ESM::Static > & 
getStatics () const
 
void copyTo (int index, RefIdData &target) const
 

Private Member Functions

void erase (const LocalIndex &index, int count)
 Must not spill over into another type. More...
 
std::string getRecordId (const LocalIndex &index) const
 

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

CSMWorld::RefIdData::RefIdData ( )

Member Function Documentation

void CSMWorld::RefIdData::appendRecord ( UniversalId::Type  type,
const std::string &  id,
bool  base 
)

Here is the call graph for this function:

void CSMWorld::RefIdData::copyTo ( int  index,
RefIdData target 
) const

Here is the call graph for this function:

void CSMWorld::RefIdData::erase ( const LocalIndex index,
int  count 
)
private

Must not spill over into another type.

Here is the call graph for this function:

void CSMWorld::RefIdData::erase ( int  index,
int  count 
)
const CSMWorld::RefIdDataContainer< ESM::Activator > & CSMWorld::RefIdData::getActivators ( ) const
const CSMWorld::RefIdDataContainer< ESM::Apparatus > & CSMWorld::RefIdData::getApparati ( ) const
int CSMWorld::RefIdData::getAppendIndex ( UniversalId::Type  type) const
const CSMWorld::RefIdDataContainer< ESM::Armor > & CSMWorld::RefIdData::getArmors ( ) const
const CSMWorld::RefIdDataContainer< ESM::Book > & CSMWorld::RefIdData::getBooks ( ) const
const CSMWorld::RefIdDataContainer< ESM::Clothing > & CSMWorld::RefIdData::getClothing ( ) const
const CSMWorld::RefIdDataContainer< ESM::Container > & CSMWorld::RefIdData::getContainers ( ) const
const CSMWorld::RefIdDataContainer< ESM::CreatureLevList > & CSMWorld::RefIdData::getCreatureLevelledLists ( ) const
const CSMWorld::RefIdDataContainer< ESM::Creature > & CSMWorld::RefIdData::getCreatures ( ) const
const CSMWorld::RefIdDataContainer< ESM::Door > & CSMWorld::RefIdData::getDoors ( ) const
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
const CSMWorld::RefIdDataContainer< ESM::Ingredient > & CSMWorld::RefIdData::getIngredients ( ) const
const CSMWorld::RefIdDataContainer< ESM::ItemLevList > & CSMWorld::RefIdData::getItemLevelledList ( ) const
const CSMWorld::RefIdDataContainer< ESM::Light > & CSMWorld::RefIdData::getLights ( ) const
const CSMWorld::RefIdDataContainer< ESM::Lockpick > & CSMWorld::RefIdData::getLocpicks ( ) const
const CSMWorld::RefIdDataContainer< ESM::Miscellaneous > & CSMWorld::RefIdData::getMiscellaneous ( ) const
const CSMWorld::RefIdDataContainer< ESM::NPC > & CSMWorld::RefIdData::getNPCs ( ) const
const CSMWorld::RefIdDataContainer< ESM::Potion > & CSMWorld::RefIdData::getPotions ( ) const
const CSMWorld::RefIdDataContainer< ESM::Probe > & CSMWorld::RefIdData::getProbes ( ) const
const CSMWorld::RecordBase & CSMWorld::RefIdData::getRecord ( const LocalIndex index) const
CSMWorld::RecordBase & CSMWorld::RefIdData::getRecord ( const LocalIndex index)
std::string CSMWorld::RefIdData::getRecordId ( const LocalIndex index) const
private
const CSMWorld::RefIdDataContainer< ESM::Repair > & CSMWorld::RefIdData::getRepairs ( ) const
int CSMWorld::RefIdData::getSize ( ) const
const CSMWorld::RefIdDataContainer< ESM::Static > & CSMWorld::RefIdData::getStatics ( ) const
const CSMWorld::RefIdDataContainer< ESM::Weapon > & CSMWorld::RefIdData::getWeapons ( ) const
CSMWorld::RefIdData::LocalIndex CSMWorld::RefIdData::globalToLocalIndex ( int  index) const
void CSMWorld::RefIdData::insertRecord ( CSMWorld::RecordBase record,
CSMWorld::UniversalId::Type  type,
const std::string &  id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMWorld::RefIdData::load ( ESM::ESMReader reader,
bool  base,
UniversalId::Type  type 
)

Here is the call graph for this function:

int CSMWorld::RefIdData::localToGlobalIndex ( const LocalIndex index) const
void CSMWorld::RefIdData::save ( int  index,
ESM::ESMWriter writer 
) const
CSMWorld::RefIdData::LocalIndex CSMWorld::RefIdData::searchId ( const std::string &  id) const

Here is the call graph for this function:

Member Data Documentation

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

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