OpenMW
Public Member Functions | Private Member Functions | Private Attributes | Friends
MWWorld::ContainerStoreIterator Class Reference

Iteration over a subset of objects in a ContainerStore. More...

#include <containerstore.hpp>

List of all members.

Public Member Functions

Ptroperator-> () const
Ptr operator* () const
ContainerStoreIteratoroperator++ ()
ContainerStoreIterator operator++ (int)
bool isEqual (const ContainerStoreIterator &iter) const
int getType () const
const ContainerStoregetContainerStore () const

Private Member Functions

 ContainerStoreIterator (ContainerStore *container)
 End-iterator.
 ContainerStoreIterator (int mask, ContainerStore *container)
 Begin-iterator.
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Potion >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Apparatus >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Armor >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Book >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Clothing >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Ingredient >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Light >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Lockpick >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Miscellaneous >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Probe >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Repair >::List::iterator)
 ContainerStoreIterator (ContainerStore *container, MWWorld::CellRefList< ESM::Weapon >::List::iterator)
void incType ()
void nextType ()
bool resetIterator ()
bool incIterator ()

Private Attributes

int mType
int mMask
ContainerStoremContainer
Ptr mPtr
MWWorld::CellRefList
< ESM::Potion >
::List::iterator 
mPotion
MWWorld::CellRefList
< ESM::Apparatus >
::List::iterator 
mApparatus
MWWorld::CellRefList
< ESM::Armor >::List::iterator 
mArmor
MWWorld::CellRefList
< ESM::Book >::List::iterator 
mBook
MWWorld::CellRefList
< ESM::Clothing >
::List::iterator 
mClothing
MWWorld::CellRefList
< ESM::Ingredient >
::List::iterator 
mIngredient
MWWorld::CellRefList
< ESM::Light >::List::iterator 
mLight
MWWorld::CellRefList
< ESM::Lockpick >
::List::iterator 
mLockpick
MWWorld::CellRefList
< ESM::Miscellaneous >
::List::iterator 
mMiscellaneous
MWWorld::CellRefList
< ESM::Probe >::List::iterator 
mProbe
MWWorld::CellRefList
< ESM::Repair >
::List::iterator 
mRepair
MWWorld::CellRefList
< ESM::Weapon >
::List::iterator 
mWeapon

Friends

class ContainerStore

Detailed Description

Iteration over a subset of objects in a ContainerStore.

Note:
The iterator will automatically skip over deleted objects.

Constructor & Destructor Documentation

End-iterator.

Begin-iterator.

MWWorld::ContainerStoreIterator::ContainerStoreIterator ( ContainerStore container,
MWWorld::CellRefList< ESM::Armor >::List::iterator  iterator 
) [private]
MWWorld::ContainerStoreIterator::ContainerStoreIterator ( ContainerStore container,
MWWorld::CellRefList< ESM::Book >::List::iterator  iterator 
) [private]
MWWorld::ContainerStoreIterator::ContainerStoreIterator ( ContainerStore container,
MWWorld::CellRefList< ESM::Light >::List::iterator  iterator 
) [private]
MWWorld::ContainerStoreIterator::ContainerStoreIterator ( ContainerStore container,
MWWorld::CellRefList< ESM::Probe >::List::iterator  iterator 
) [private]

Member Function Documentation

Increment iterator for selected type.

Returns:
reached the end?
MWWorld::Ptr MWWorld::ContainerStoreIterator::operator* ( ) const
MWWorld::ContainerStoreIterator & MWWorld::ContainerStoreIterator::operator++ ( )
MWWorld::ContainerStoreIterator MWWorld::ContainerStoreIterator::operator++ ( int  )
MWWorld::Ptr * MWWorld::ContainerStoreIterator::operator-> ( ) const

Reset iterator for selected type.

Returns:
Type not empty?

Friends And Related Function Documentation

friend class ContainerStore [friend]

Member Data Documentation


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