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

  PUBLIC
SLListC::SLListC(void)
SLListC::SLListC(const SLListC &)
SLListC::~SLListC(void)
SLListC::First(void)
SLListC::First(void) const
SLListC::Last(void)
SLListC::Last(void) const
SLListC::GetFirst(void) const
SLListC::GetLast(void) const
SLListC::InsFirst(const T &)
SLListC::InsLast(const T &)
SLListC::DelFirst(void)
SLListC::DelLast(void)
SLListC::Empty(void)
SLListC::IsEmpty(void) const
SLListC::operator=(const SLListC &)
SLListC::MoveLast(SLListC &)
SLListC::MoveFirst(SLListC &)
SLListC::MoveFirstElm2Here(SLListC &)
SLListC<class T>
 
Single Linked List.
 
include "amma/SLList.hh"
User Level:Default
Library:Hash1d
Example:exStack.cc
Section:Containers.Lists
In Scope:std

Comments:
This is designed to be very fast & small. It's mainly for use in real-time applications, has much less functionality than DListC<>, and is less safe. In some situations may not even be much faster.

This is a SMALL object. No refrence counting.

Variables:
SLListElemC * PFirst;
First in list.

Methods:
SLListC()
Default constructor.
This creates an empty list.

SLListC(const SLListC & Oth)

~SLListC()
Destructor.

T & First(void)
Get first element in list. IsEmpty() must be FALSE.

const T & First(void) const
Get first element in list. IsEmpty() must be FALSE.

T & Last(void)
Get last element in list. IsEmpty() must be FALSE.

const T & Last(void) const
Get last element in list. IsEmpty() must be FALSE.

T GetFirst(void) const
Get copy of first element. IsEmpty() must be FALSE.

T GetLast(void) const
Get copy of first element. IsEmpty() must be FALSE.

void InsFirst(const T & Data)
Insert data first in list.

void InsLast(const T & Data)
Insert data last in list. (SLOW)

BooleanT DelFirst(void)
Delete first element of list.

BooleanT DelLast(void)
Delete last element of list.

void Empty(void)
Empty all data out of list.

BooleanT IsEmpty(void) const
Test if the list is empty.

SLListC<T> & operator=(const SLListC<T> & Oth)
make a copy of another list into this one.

void MoveLast(SLListC<T> & Other)
Move contents of 'Other' list to end of this one.
Leaves 'Other' list empty.

void MoveFirst(SLListC<T> & Other)
Move contents of 'Other' list to the begining of this one.
Leaves 'Other' list empty.

void MoveFirstElm2Here(SLListC<T> & Oth)
Move first element of another list into this one.


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