Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Lists - SubStringListC
 

  PUBLIC
SubStringListC::SubStringListC(void)
SubStringListC::SubStringListC(const SubStringListC &)
SubStringListC::SubStringListC(const DListC &)
SubStringListC::SubStringListC(const SubStringC &,const char *)
SubStringListC::operator +=(const SubStringListC &)
SubStringListC::Cat(const char *) const
SubStringListC::operator <<(ostream &,const SubStringListC &)
DListC::Body(void)
DListC::Body(void) const
DListC::Head(void)
DListC::Head(void) const
DListC::IsEmpty(void) const
DListC::Size(void) const
DListC::Reverse(void)
DListC::Copy(void) const
DListC::InsFirst(const DataT &)
DListC::InsLast(const DataT &)
DListC::PopFirst(void)
DListC::PopLast(void)
DListC::DelFirst(void)
DListC::DelLast(void)
DListC::Empty(void)
DListC::operator +=(const DataT &)
DListC::operator +=(const DListC &)
DListC::MoveFirst(DListC &)
DListC::MoveLast(DListC &)
DListC::MoveFirst(DLIterC &)
DListC::MoveLast(DLIterC &)
DListC::operator ==(const DListC &) const
DListC::operator !=(const DListC &) const
DListC::First(void)
DListC::Last(void)
DListC::First(void) const
DListC::Last(void) const
DListC::Del(const DataT &)
DListC::Contains(const DataT &)
DListC::Nth(int)
DListC::Nth(int) const
DListC::operator <<(ostream &,const DListC &)
DListC::operator >>(istream &,DListC &)
DListC::operator <<(BinOStreamC &,const DListC &)
DListC::operator >>(BinIStreamC &,DListC &)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   SubStringListC   
 
List of SubStringC's
 
include "Ravl/SubStringList.hh"
Created:12/07/1996 
Source file:Ravl/Core/System/SubStringList.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Parent Classes: Methods:
SubStringListC()
Default constructor

SubStringListC(const SubStringListC & oth)
Copy constructor

SubStringListC(const DListC<SubStringC> & alist)
Constructor

SubStringListC(const SubStringC & str,const char * delim = " \n\t\0")
Constructor that tokenises string into string list

const SubStringListC & operator +=(const SubStringListC & list)
Concatenation.
The operator moves the whole 'list to the end of this list. The 'list' will be EMPTY after the operation.

The arg is only constant so that 'list' may be a tempory without causing warnings.

Returns this list.


StringC Cat(const char * sep = " ") const
concatenates string list into a single string

ostream & operator <<(ostream & s,const SubStringListC & list)

#include "Ravl/DList.hh"
DListBodyC<SubStringC> & Body()
Access body.

const DListBodyC<SubStringC> & Body() const
Constant access to body.

DLinkC & Head()
Get head of list.

const DLinkC & Head() const
Get head of list.

bool IsEmpty() const
Test is the list is empty.

UIntT Size() const
Count the number of elements in the list.
This is slow! It goes through the list counting the elements.

void Reverse()
Reverse the order of the list.

DListC<SubStringC> Copy() const
Make a copy of this list.

void InsFirst(const SubStringC & dat)
Push element onto the begining of the list.

void InsLast(const SubStringC & dat)
Push element onto the end of the list.

SubStringC PopFirst()
Pop item off front of list.

SubStringC PopLast()
Pop item off end of list.

void DelFirst()
Delete the first element from the list.

void DelLast()
Delete the last element from the list.

void Empty()
Empty the list of all its contents.

DListC<SubStringC> & operator +=(const SubStringC & dat)
Add element to the end of the list.

DListC<SubStringC> & operator +=(const DListC<SubStringC> & dat)
Copy contents of other list to end of this one.

void MoveFirst(DListC<SubStringC> & lst)
Move the entire contents of 'lst' to the beginning of this one.
this leaves 'lst' empty.

void MoveLast(DListC<SubStringC> & lst)
Move the entire contents of 'lst' to the end of this one.
this leaves 'lst' empty.

void MoveFirst(DLIterC<SubStringC> & at)
Move the single item 'at' to the beginning of this list.

void MoveLast(DLIterC<SubStringC> & at)
Move the single item 'at' to the end of this list.

bool operator ==(const DListC<SubStringC> & oth) const
Are lists identical ?
Test if lists have identical content.

bool operator !=(const DListC<SubStringC> & oth) const
Are lists different ?
Test if lists have different content.

SubStringC & First()
Get first element in list.
NB. List MUST be non-empty.

SubStringC & Last()
Get last element in list.
NB. List MUST be non-empty.

const SubStringC & First() const
Get first element in list.
NB. List MUST be non-empty.

const SubStringC & Last() const
Get last element in list.
NB. List MUST be non-empty.

bool Del(const SubStringC & x)
Remove first instance of 'x' found in list.
returns true if the item is found and removed, false otherwise.

bool Contains(const SubStringC & x)
Test if this list contains an element == to 'x'.

SubStringC & Nth(int n)
Find the nth element in the list.
0 is the first element, 2 the second etc. -1 is the last, -2 second from last.

const SubStringC & Nth(int n) const
Find the nth element in the list.
0 is the first element, 2 the second etc. -1 is the last, -2 second from last.

ostream & operator <<(ostream & strm,const DListC<SubStringC> & lst)

istream & operator >>(istream & strm,DListC<SubStringC> & lst)

BinOStreamC & operator <<(BinOStreamC & strm,const DListC<SubStringC> & lst)

BinIStreamC & operator >>(BinIStreamC & strm,DListC<SubStringC> & lst)

#include "Ravl/RefCounter.hh"
const RCHandleC<DListBodyC<DataT>> & operator =(const RCHandleC<DListBodyC<DataT>> & oth)
Assign handle.

RCHandleC<DListBodyC<DataT>> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<DListBodyC<DataT>> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<DListBodyC<DataT>> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

DListBodyC<DataT> & Body()
Access body of object.

const DListBodyC<DataT> & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<DListBodyC<DataT>> & obj)

istream & operator >>(istream & strm,RCHandleC<DListBodyC<DataT>> & obj)


Maintainer:Bill Christmas, Created: 12/07/1996, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002