Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
SDArray1dC::SDArray1dC(UIntT)
SDArray1dC::SDArray1dC(const SDArray1dC &)
SDArray1dC::SDArray1dC(const SDArray1dC &,IntT)
SDArray1dC::~SDArray1dC(void)
SDArray1dC::Resize(UIntT)
SDArray1dC::Empty(void)
SDArray1dC::Add(const T &)
SDArray1dC::Chop(void)
SDArray1dC::operator[](UIntT)
SDArray1dC::operator[](UIntT) const
SDArray1dC::operator[](IndexC)
SDArray1dC::operator[](IndexC) const
SDArray1dC::operator=(const SDArray1dC &)
SDArray1dC::Last(void) const
SDArray1dC::Compair(const SDArray1dC &) const
SDArray1dC::operator==(const SDArray1dC &) const
SDArray1dC::N(void) const
SDArray1dC::Size(void) const
SDArray1dC::MaxN(void) const
SDArray1dC::IsSpace(void) const
SDArray1dC::IsEmpty(void) const
SDArray1dC<class T>
 
1D Simple Dynamic Array.
 
include "amma/SDArray1d.hh"
User Level:Default
Library:MSArr1
Example:exBuffer.cc
Section:Containers.Arrays.1-D Arrays
In Scope:std

Comments:
This does not intalise data before it's needed.

SMALL OBJECT

Variables:
UIntT Used;
Number used in the SDArray1d.

UIntT size;
size of allocated array.

char * Data;
Ptr to data array.

Methods:
SDArray1dC(UIntT Initsize = 0)
Constructor.

SDArray1dC(const SDArray1dC<T> & Oth)
Copy constructor.

SDArray1dC(const SDArray1dC<T> & Oth,IntT Delta)

~SDArray1dC()
Destructor.

void Resize(UIntT size)
Resize SDArray1d.

void Empty(void)
Remove all contents.

UIntT Add(const T & Data)
Append data to end.
Returns the index of the appended item. This function will automaticly expand the array if necessary.

UIntT Chop(void)
Chop last number from array.
NB. This does NOT shrink the array in the current implementation, this may change in future.

T & operator[](UIntT i)
Access element.

const T & operator[](UIntT i) const
Access element.

T & operator[](IndexC i)
Access element.

const T & operator[](IndexC i) const
Access element.

const SDArray1dC<T> & operator=(const SDArray1dC<T> & Oth)
Assign to another SDArray1d.

const T & Last() const
Get last element in array.

BooleanT Compair(const SDArray1dC<T> & Oth) const
Compair with another SDArray1d.

BooleanT operator==(const SDArray1dC<T> & Oth) const
Comparison.

UIntT N(void) const
Number of elements used.

UIntT Size(void) const
Number of elements used.

UIntT MaxN(void) const
Number of elements used.

BooleanT IsSpace() const
Is space for more data ?

BooleanT IsEmpty() const
Is empty ?


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001