ScummVM API documentation
Sherlock::ObjectArray Class Reference
Inheritance diagram for Sherlock::ObjectArray:
Common::Array< Object >

Public Member Functions

int indexOf (const Object &obj) const
 
- 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 emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const Object &element)
 
void push_back (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
 

Member Function Documentation

◆ indexOf()

int Sherlock::ObjectArray::indexOf ( const Object obj) const

Retuurn the index of the passed object in the array


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