template<class TYPE> class GArray: public GArrayTemplate<TYPE>

Dynamic array for general types.

Inheritance:


Public Methods

[more] GArray()
Constructs an empty array.
[more] GArray(int hi)
Constructs an array with subscripts in range 0 to hibound.
[more] GArray(int lo, int hi)
Constructs an array with subscripts in range lobound to hibound.


Inherited from GArrayTemplate:

Public Methods

oint size() const
oint lbound() const
oint hbound() const
oinline TYPE& operator[](int const n)
oinline const TYPE& operator[](int n) const
o operator TYPE* ()
o operator const TYPE* () const
ovoid empty()
ovoid touch(int n)
ovoid resize(int hibound)
ovoid resize(int lobound, int hibound)
ovoid shift(int disp)
ovoid del(int n, int howmany=1)
ovoid ins(int n, int howmany=1)
ovoid ins(int n, const TYPE &val, int howmany=1)
ovoid steal(GArrayTemplate &ga)
ovoid sort()
ovoid sort(int lo, int hi)


Documentation

Dynamic array for general types. Template class GArray<TYPE> implements an array of elements of type TYPE. This template class must be able to access the following functions. This class only implement constructors. See class GArrayTemplate for a description of all access methods.
o GArray()
Constructs an empty array. The valid subscript range is initially empty. Member function touch and resize provide convenient ways to enlarge the subscript range.

o GArray(int hi)
Constructs an array with subscripts in range 0 to hibound. The subscript range can be subsequently modified with member functions touch and resize.

o GArray(int lo, int hi)
Constructs an array with subscripts in range lobound to hibound. The subscript range can be subsequently modified with member functions touch and resize.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


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