template<class Type>
class BOPCol_MemBlock< Type >
Class BOPCol_Array1 (dynamic array of objects)
- The Array1 uses the allocator (in terms of NCollection_BaseAllocator) to allocate the memory.
- The memory is allocated as a list of memory blocks. The size of the first block is myStartSize. The size of the other blocks is myIncrement 3 The Array1 is created with 0 length.
- The Array1 must be initiated by invoke the method Init(). Init() allocates the memory block for initial myStartSize elements.
- The elements can be added by the method Append(theElement). the method Append(theElement) arranges theElement in a) previously allocated memory block (if it is possible) b) new allocated memory block (otherwise). The size of new blocks to allocate can be set [once only] by the method SetIncrement(theSize).
- The contents of the element with index "i" can be queried or modified by the methods SetValue(i, theElement), Value(i), ChangeValue(i), operator()(i)