Struct ObjectList

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

Fields

Name Type Description
_count int
_list T[]

Properties

Name Type Description
count [get] int returns count of items

Methods

Name Description
add add item to list
clear remove and destroy all items
get get item by index
get get const item by index
indexOf find child index for item, return -1 if not found
insert add item to list
opApply Support foreach
opIndex get item by index
remove remove item from list, return removed item
replace Replace item with another value, destroy old value.

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0