DynArray
( template )
Package: INCLUDE
Include: base/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 luxemburg, Wed Jul 2 11:58:47 MET DST 1997