ObjectList

object list holder, owning its objects - on destroy of holder, all own objects will be destroyed

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

add
T add(T item)

add item to list

clear
void clear()

remove and destroy all items

get
T get(int index)

get item by index

indexOf
int indexOf(T item)

find child index for item, return -1 if not found

indexOf
int indexOf(string id)

find child index for item by id, return -1 if not found

insert
T insert(T item, int index = -1)

add item to list

opIndex
T opIndex(int index)

get item by index

remove
T remove(int index)

remove item from list, return removed item

replace
void replace(T item, int index)

Replace item with another value, destroy old value.

replace
void replace(T newItem, T oldItem)

Replace item with another value, destroy old value.

Properties

count
int count [@property getter]

returns count of items

Meta