template<class TYPE> class TArray: public ArrayBaseT<TYPE>

Dynamic array for simple types.

Inheritance:


Public Methods

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


Inherited from ArrayBaseT:

Public Methods

oTYPE& operator[](int n)
oconst TYPE& operator[](int n) const
o operator TYPE* ()
o operator const TYPE* () const
ovoid ins(int n, const TYPE &val, unsigned int howmany=1)
ovoid sort()
ovoid sort(int lo, int hi)


Inherited from ArrayBase:

Public Methods

oint size() const
oint lbound() const
oint hbound() 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, unsigned int howmany=1)


Documentation

Dynamic array for simple types. Template class TArray<TYPE> implements an array of elements of simple type TYPE. Simple means that the type may be char, way in which the TArray is working with its elements: it's not trying to execute elements' constructors, destructors or copy operators. It's just doing bitwise copy. Except for this it's pretty much the same as DArray.

Please note that most of the methods are implemented in the base classes ArrayBase and ArrayBaseT.

o TArray()
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 TArray(int hibound)
Constructs an array with subscripts in range 0 to hibound. The subscript range can be subsequently modified with member functions touch and resize.
Parameters:
hibound - upper bound of the initial subscript range.

o TArray(int lobound, int hibound)
Constructs an array with subscripts in range lobound to hibound. The subscript range can be subsequently modified with member functions touch and resize.
Parameters:
lobound - lower bound of the initial subscript range.
hibound - upper bound of the initial subscript range.


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.