Info-Mac Archive Downloads: dev/ Development

Back to dev/ Development

CRefDynGenStrArray AUG26_00.sit (into Development) (crefdyngenstrarray.hqx)

Download crefdyngenstrarray.hqx (183,773 KB)


From: macgurutemple
Subject: CRefDynGenStrArray AUG26_00.sit (into Development)

STL-vector-based dynamic array of generic strings. Supports storing
of Pascal&C style strings, STL strings and vector.

All strings are kept in single storage buffer, so even very large number
of items will not cause memory management overhead. Occupies StringLen[0]
+ ... StringLen[n - 1] + 2*n*sizeof(size_t). In other words,
CRefDynGenStrArray is really space efficient.

CRefDynGenStrArray maintains additional reference table of real indexes.
Thus, many functions will involve only operations with reference table.
For example, Insert() actually appends item (what is much faster) and
inserts only entry into reference table; Swap(), Move() and sort will
cause changes only in reference table.

Refer to http://homepage.mac.com/macgurutemple/ for more info.


With best regards

Andrei Verovski