Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Arrays - 1D - SDArray1dC<class T>
 

  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::Compare(const SDArray1dC &) const
SDArray1dC::operator ==(const SDArray1dC &) 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 "Ravl/SDArray1d.hh"
Created:4/9/1996 
Source file:Ravl/Core/Container/SArray/SDArray1d.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

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)
Copy constructor, expanding array by 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.

bool Compare(const SDArray1dC<T> & Oth) const
Compare with another SDArray1d.

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

UIntT Size(void) const
Number of elements used.

UIntT MaxN(void) const
Number of elements used.

bool IsSpace() const
Is space for more data ?

bool IsEmpty() const
Is empty ?


Maintainer:Charles Galambos, Created: 4/9/1996, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002