Dynamic Arrays

Dynamic arrays.

o template<class TYPE> class GArrayTemplate: protected GArrayBase
Common base class for all dynamic arrays.
o template<class TYPE> class GArray: public GArrayTemplate<TYPE>
Dynamic array for general types.
o template<class TYPE> class GPArray: public GArrayTemplate<GP<TYPE> >
Dynamic array for smart pointers.
o template<class TYPE> class GTArray: public GArrayTemplate<TYPE>
Dynamic array for simple types.
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:

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


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.