ScummVM API documentation
CryOmni3D::Inventory Class Reference
Inheritance diagram for CryOmni3D::Inventory:
Common::Array< Object *>

Public Member Functions

void init (uint count, Common::Functor1< uint, void > *changeCallback)
 
void clear ()
 
void add (Object *)
 
void remove (uint position)
 
void removeByNameID (uint nameID)
 
void removeByIconID (uint iconID)
 
bool inInventoryByNameID (uint nameID) const
 
bool inInventoryByIconID (uint iconID) const
 
ObjectselectedObject () const
 
void setSelectedObject (Object *obj)
 
void deselectObject ()
 
- Public Member Functions inherited from Common::Array< Object *>
 Array (size_type count)
 
 Array (size_type count, const Object * &value)
 
 Array (const Array< Object * > &array)
 
 Array (Array< Object * > &&old)
 
 Array (std::initializer_list< Object * > list)
 
 Array (const T2 *array, size_type n)
 
void push_back (const Object * &element)
 
void push_back (const Array< Object * > &array)
 
void pop_back ()
 
const Object * * data () const
 
Object * * data ()
 
Object * & front ()
 
const Object * & front () const
 
Object * & back ()
 
const Object * & back () const
 
void insert_at (size_type idx, const Object * &element)
 
void insert_at (size_type idx, const Array< Object * > &array)
 
void insert (iterator pos, const Object * &element)
 
Object * remove_at (size_type idx)
 
Object * & operator[] (size_type idx)
 
const Object * & operator[] (size_type idx) const
 
Array< Object * > & operator= (const Array< Object * > &array)
 
Arrayoperator= (Array< Object * > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< Object * > &other) const
 
bool operator!= (const Array< Object * > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const Object * value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< Object *>
typedef Object * * iterator
 
typedef const Object * * const_iterator
 
typedef Object * value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< Object *>
void allocCapacity (size_type capacity)
 
void freeStorage (Object * *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< Object *>
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< Object *>
size_type _capacity
 
size_type _size
 
Object * * _storage
 

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