OpenMW
Public Types | Public Member Functions | Private Member Functions
MWGui::ItemModel Class Reference

The base class that all item models should derive from. More...

#include <itemmodel.hpp>

List of all members.

Public Types

typedef int ModelIndex

Public Member Functions

 ItemModel ()
virtual ~ItemModel ()
virtual ItemStack getItem (ModelIndex index)=0
 throws for invalid index
virtual size_t getItemCount ()=0
virtual ModelIndex getIndex (ItemStack item)=0
virtual void update ()=0
virtual void copyItem (const ItemStack &item, size_t count)=0
virtual void removeItem (const ItemStack &item, size_t count)=0

Private Member Functions

 ItemModel (const ItemModel &)
ItemModeloperator= (const ItemModel &)

Detailed Description

The base class that all item models should derive from.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual MWGui::ItemModel::~ItemModel ( ) [inline, virtual]
MWGui::ItemModel::ItemModel ( const ItemModel ) [private]

Member Function Documentation

virtual void MWGui::ItemModel::copyItem ( const ItemStack item,
size_t  count 
) [pure virtual]
virtual ModelIndex MWGui::ItemModel::getIndex ( ItemStack  item) [pure virtual]
virtual ItemStack MWGui::ItemModel::getItem ( ModelIndex  index) [pure virtual]
virtual size_t MWGui::ItemModel::getItemCount ( ) [pure virtual]
ItemModel& MWGui::ItemModel::operator= ( const ItemModel ) [private]
virtual void MWGui::ItemModel::removeItem ( const ItemStack item,
size_t  count 
) [pure virtual]
virtual void MWGui::ItemModel::update ( ) [pure virtual]

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