Data Fields | |
| ESR_ReturnCode(* | add )(struct ArrayList_t *self, void *element) |
| ESR_ReturnCode(* | insertAt )(struct ArrayList_t *self, size_t index, void *element) |
| ESR_ReturnCode(* | remove )(struct ArrayList_t *self, const void *element) |
| ESR_ReturnCode(* | removeAtIndex )(struct ArrayList_t *self, size_t index) |
| ESR_ReturnCode(* | removeAll )(struct ArrayList_t *self) |
| ESR_ReturnCode(* | contains )(struct ArrayList_t *self, const void *element, ESR_BOOL *exists) |
| ESR_ReturnCode(* | getSize )(struct ArrayList_t *self, size_t *size) |
| ESR_ReturnCode(* | get )(struct ArrayList_t *self, size_t index, void **element) |
| ESR_ReturnCode(* | set )(struct ArrayList_t *self, size_t index, void *element) |
| ESR_ReturnCode(* | toStaticArray )(struct ArrayList_t *self, void **newArray) |
| ESR_ReturnCode(* | clone )(struct ArrayList_t *self, struct ArrayList_t *clone) |
| ESR_ReturnCode(* | destroy )(struct ArrayList_t *self) |
| ESR_ReturnCode(* ArrayList::add)(struct ArrayList_t *self, void *element) |
Adds element to list.
| self | ArrayList handle | |
| element | Element to be added |
| ESR_ReturnCode(* ArrayList::insertAt)(struct ArrayList_t *self, size_t index, void *element) |
Inserts an element in the the list at the specified location. This causes all elements above or at the specified location to be shifted by one.
| self | ArrayList handle | |
| index | The index where to insert the element. | |
| element | The element to insert. |
| ESR_ReturnCode(* ArrayList::remove)(struct ArrayList_t *self, const void *element) |
Removes element from list.
| self | ArrayList handle | |
| element | Element to be removed |
| ESR_ReturnCode(* ArrayList::removeAtIndex)(struct ArrayList_t *self, size_t index) |
Removes element from list at specified index.
| self | ArrayList handle | |
| index | Index of element to be removed |
| ESR_ReturnCode(* ArrayList::removeAll)(struct ArrayList_t *self) |
Removes all elements from list.
| self | ArrayList handle |
| ESR_ReturnCode(* ArrayList::contains)(struct ArrayList_t *self, const void *element, ESR_BOOL *exists) |
Indicates if element is contained within the list.
| self | ArrayList handle | |
| element | Element to check for | |
| exists | True if element was found |
| ESR_ReturnCode(* ArrayList::getSize)(struct ArrayList_t *self, size_t *size) |
Returns array size.
| self | ArrayList handle | |
| size | Returned size |
| ESR_ReturnCode(* ArrayList::get)(struct ArrayList_t *self, size_t index, void **element) |
Returns the element at the specified index.
| self | ArrayList handle | |
| index | Element index | |
| element | Element being returned |
| ESR_ReturnCode(* ArrayList::set)(struct ArrayList_t *self, size_t index, void *element) |
Sets the element at the specified index.
NOTE: Does *not* deallocate the element being overwritten.
| self | ArrayList handle | |
| index | Element index | |
| element | Element's new value |
| ESR_ReturnCode(* ArrayList::toStaticArray)(struct ArrayList_t *self, void **newArray) |
| ESR_ReturnCode(* ArrayList::clone)(struct ArrayList_t *self, struct ArrayList_t *clone) |
Returns a clone of the ArrayList.
| self | ArrayList handle | |
| clone | [out] Clone of the ArrayList (created externally, populated internally) |
| ESR_ReturnCode(* ArrayList::destroy)(struct ArrayList_t *self) |
1.5.3