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

  PUBLIC
KListC::KListC(void)
KListC::KListC(const KListC &)
KListC::operator=(const KListC &)
KListC::Destruct(void)
KListC::~KListC(void)
KListC::InsAfter(const KIterC &,const T &)
KListC::InsBefore(const KIterC &,const T &)
KListC::InsFirst(const T &)
KListC::InsLast(const T &)
KListC::Delete(KIterC &)
KListC::DeleteFirst(void)
KListC::DeleteLast(void)
KListC::MovetoEnd(KIterC &)
KListC::operator[](int)
KListC::Nth(int)
KListC::IsEmpty(void)
KListC::Size(void)
KListC::N(void)
KListC::FindPos(T &)
KListC::RemoveElement(T &)
KListC::Append(KListC &)
KListC::Copy(void)
KListC::Sort(ScopePath (*)(FuncArgList))
KListC<class T>
 
include "amma/KwList.hh"
User Level:Default
Library:ContainerMisc
Example:exBiHash.cc
Section:Containers.Misc
In Scope:std

Parent Classes:

Variables:
Methods:
KListC()
Null Constructor

KListC(const KListC & s)
Copy constructor

KListC<T> & operator=(const KListC<T> & s)
Assignment

void Destruct()

~KListC()
Destructor Speed critical operations -------------------------

KIterC InsAfter(const KIterC & it,const T & d)
Insert data after present position, returns iterator to new element

KIterC InsBefore(const KIterC & it,const T & d)
Insert data before present position, returns iterator to new element

KIterC InsFirst(const T & d)
Insert data d just after header, returns iterator to new element

KIterC InsLast(const T & d)
Insert data d just before header, returns iterator to new element

KListC<T> & Delete(KIterC & it)
delete needing only an iterator, a test for == head is made and if nonhead iterator it is advanced to point to element after deleted element

KListC<T> & DeleteFirst()
delete first element if exists

KListC<T> & DeleteLast()
delete last element if exists

KListC<T> & MovetoEnd(KIterC & it)
moves data elements pointed to by "it" to end of list Iterator Stuff --------------

T & operator[](int n)
access to Nth element

KIterC Nth(int n)
Make iterator point to n'th element, points to header if n too large The first element is number 1 not 0

int IsEmpty()
TRUE if empty

int Size()
returns the number of elements

int N()
returns the number of elements Etc ---

int FindPos(T & d)
returns the integer position of the element in the list, 0 if not there

int RemoveElement(T & d)
Removes the first element == d, returns 1==success, 0==failure

KListC<T> & Append(KListC<T> & b)
Append list b to this and return this, b is not affected

KListC<T> Copy()
Make a new copy

void Sort(ScopePath (*)(FuncArgList) Val)
sorts according to Val into ascending order.


Programmer:Andrew Stoddart, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001