LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Generics Redux - TLKListCapacityExpander #108

Closed LaKraven closed 6 years ago

LaKraven commented 9 years ago

Takes responsibility for dictating how the Array contained in its owning TLKListBase type is expanded to accommodate items.

TLKListBase will provide a property called CapacityExpanderType of type TLKListCapacityExpanderType defined as

TLKListCapacityExpanderType = class of TLKListCapacityExpander;

The default Capacity Expander will simply allocate one block of memory to the Array at a time (not too bad for single-threaded systems, but pretty poor for large and multi-threaded systems).

Numerous descendants of TLKListCapacityExpander will be provided as a standard part of the LKSL, but implementing developers can also define their own to suit specific requirements.

LaKraven commented 9 years ago

Related: #107 Related: #109 Related: #110

LaKraven commented 9 years ago

Now called TLKListExpander