OpenEnroth 52af553
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
InventoryEntry Class Reference

#include <Inventory.h>

Inheritance diagram for InventoryEntry:
InventoryConstEntry

Public Member Functions

 InventoryEntry ()=default
 
Itemoperator-> () const
 
Itemoperator* () const
 
Itemget () const
 
InventoryEntryoperator= (std::nullptr_t)
 
- Public Member Functions inherited from InventoryConstEntry
 InventoryConstEntry ()=default
 
 operator bool () const
 
const Itemoperator-> () const
 
const Itemoperator* () const
 
const Itemget () const
 
InventoryZone zone () const
 
Recti geometry () const
 
ItemSlot slot () const
 
int index () const
 
bool operator! () const
 
InventoryConstEntryoperator= (std::nullptr_t)
 

Protected Member Functions

 InventoryEntry (Inventory *inventory, int index)
 
- Protected Member Functions inherited from InventoryConstEntry
 InventoryConstEntry (const Inventory *inventory, int index)
 

Friends

class Inventory
 

Detailed Description

Mutable counterpart to InventoryConstEntry, allowing modification of the referenced Item.

Constructor & Destructor Documentation

◆ InventoryEntry() [1/2]

InventoryEntry::InventoryEntry ( )
default

◆ InventoryEntry() [2/2]

InventoryEntry::InventoryEntry ( Inventory inventory,
int  index 
)
inlineprotected

Member Function Documentation

◆ get()

Item * InventoryEntry::get ( ) const
inline

◆ operator*()

Item & InventoryEntry::operator* ( ) const
inline

◆ operator->()

Item * InventoryEntry::operator-> ( ) const
inline

◆ operator=()

InventoryEntry & InventoryEntry::operator= ( std::nullptr_t  )
inline

Friends And Related Function Documentation

◆ Inventory

friend class Inventory
friend

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