#include <lists32.h>
Public Types | |
| typedef T ** | iterator |
| typedef T *const * | const_iterator |
| typedef T * | value_type |
| typedef uint | size_type |
Public Member Functions | |
| StablePointerDynamicArray (const StablePointerDynamicArray &other) | |
| StablePointerDynamicArray (StablePointerDynamicArray &&other) | |
| void | operator= (StablePointerDynamicArray &other) |
| void | operator= (StablePointerDynamicArray &&other) |
| T *const & | operator[] (size_type index) const |
| T *& | operator[] (size_type index) |
| void | add (T *item) |
| iterator | begin () |
| const_iterator | begin () const |
| void | clear () |
| iterator | end () |
| const_iterator | end () const |
| void | erase (T *item) |
| void | erase (iterator &it) |
| void | erase_at (size_type index) |
| size_type | pack () |
| size_type | size () const |
StablePointerDynamicArray is like StablePointerArray above, except that it uses a Common::Array for storage instead of a fixed array. It is only used by DrawList, and was created upon discovering that LSL7 room 301 can overflow DrawList when displaying a large menu. Bug #14632
|
inline |
Adds a new pointer to the array.
|
inline |
Erases the object pointed to by the given iterator.
|
inline |
Erases the object pointed to by the given iterator.
|
inline |
Erases the object pointed to at the given index.
|
inline |
Removes freed pointers from the pointer list.
|
inline |
The number of populated slots in the array. The size of the array will only go down once pack is called.