Dynamic arrays.
These class implement arrays of objects of any type. Each element is identified by an integer subscript. The valid subscripts range is defined by dynamically adjustable lower- and upper-bounds. Besides accessing and setting elements, member functions are provided to insert or delete elements at specified positions.Class GArrayTemplate implements all methods for manipulating arrays of type TYPE. You should not however create instances of this class. You should instead use one of the following classes:
- Class GArray
is the most general class, - Class GTArray
is more efficient, but only works for types that do not require sophisticated constructors or destructors, such as the plain old C types (e.g. - Class GPArray
implements an array of smart-pointers GP to objects of type TYPE. Using this class reduces the size of the code generated by the template instanciation. Another variant of dynamic arrays is implemented in file Arrays.h. The main difference is that class TArray, DArray and DPArray implement a copy-on-demand scheme.
Alphabetic index Hierarchy of classes