DynArray

( template )

Package: BASE
Include: dynarray.h

Dynamic Array ADT


Methods:

DynArray
DynArray();
DynArray(int s);
DynArray(const DynArray&);
virtual ~DynArray();
Default array size : 10

operator=
DynArray& operator=(const DynArray&);
Target arrray becomes the same size as the source array.

operator[], size
T& operator[](int);
const T& operator[](int) const;
int size() const;
Elements can be accessed by reference and by value.

operator==, operator!=
int operator==(const DynArray&) const;
int operator!=(const DynArray&) const;
Two arrays are equal if they contain the same number of
elements and if all elements are equal.

resize
void resize(int);
If the array size is incremented, the original content is not
affected. If the array size is decremented, the content is
cut.

Base Classes:

SharedObj


AutoDOC 2.0: Created on petri, Mon May 26 15:31:38 MET DST 1997