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

  PUBLIC
StringListC::StringListC(void)
StringListC::StringListC(const StringListC &)
StringListC::StringListC(const DListC &)
StringListC::StringListC(const StringC &,const char *)
StringListC::StringListC(const StringC &,bool,const char *)
StringListC::operator +=(const StringListC &)
StringListC::CasePos(const StringC &) const
StringListC::Cat(const StringC &) const
StringListC::operator <<(ostream &,const StringListC &)
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 &)

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

Parent Classes: Methods:
StringListC()
Default constructor

StringListC(const StringListC & oth)
Copy constructor

StringListC(const DListC<StringC> & alist)
Constructor

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

StringListC(const StringC & str,bool fullParse,const char * delim = " \n\t\0")
Constructor that tokenises string into string list
If full parse is enabled double quotes are respected, and escaping with '\' is supported.

const StringListC & operator +=(const StringListC & 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.


IndexC CasePos(const StringC & str) const
finds position of string in list - case insensitive

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

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

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

const DListBodyC<StringC> & 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<StringC> Copy() const
Make a copy of this list.

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

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

StringC PopFirst()
Pop item off front of list.

StringC 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<StringC> & operator +=(const StringC & dat)
Add element to the end of the list.

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

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

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

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

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

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

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

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

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

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

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

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

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

StringC & 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 StringC & 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<StringC> & lst)

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

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

BinIStreamC & operator >>(BinIStreamC & strm,DListC<StringC> & 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