CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

scfStrVector Class Reference

This class is a thin wrapper around csStrVector with SCF capability. More...

#include <scfstrv.h>

Inheritance diagram for scfStrVector:

iStrVector iBase List of all members.

Public Methods

 scfStrVector (int iLimit=16, int iDelta=16)
 Create a iStrVector from scratch. More...

virtual ~scfStrVector ()
 Destructor - nothing to do. More...

virtual int Length () const
 Query array length. More...

virtual void Push (char *iValue)
 Push a string onto the stack. More...

virtual char * Pop ()
 Pop a string from the top of stack. More...

virtual char * Get (int iIndex) const
 Get Nth string in vector. More...

virtual int Find (const char *iValue) const
 Find index of given string. More...

virtual int FindSorted (const char *iValue) const
 Find index of a string in a pre-sorted string array. More...

virtual void QuickSort ()
 Sort the string array. More...

virtual void Delete (int iIndex)
 Delete Nth string in the array. More...

virtual void Insert (int iIndex, char *iValue)
 Insert a string before Nth string in the array. More...

virtual void DeleteAll ()
 Delete all strings in array. More...


Detailed Description

This class is a thin wrapper around csStrVector with SCF capability.

Definition at line 27 of file scfstrv.h.


Constructor & Destructor Documentation

scfStrVector::scfStrVector int    iLimit = 16,
int    iDelta = 16
[inline]
 

Create a iStrVector from scratch.

Definition at line 35 of file scfstrv.h.

References SCF_CONSTRUCT_IBASE.

virtual scfStrVector::~scfStrVector   [inline, virtual]
 

Destructor - nothing to do.

Definition at line 39 of file scfstrv.h.


Member Function Documentation

virtual void scfStrVector::Delete int    iIndex [virtual]
 

Delete Nth string in the array.

Implements iStrVector.

virtual void scfStrVector::DeleteAll   [virtual]
 

Delete all strings in array.

Implements iStrVector.

virtual int scfStrVector::Find const char *    iValue const [virtual]
 

Find index of given string.

Implements iStrVector.

virtual int scfStrVector::FindSorted const char *    iValue const [virtual]
 

Find index of a string in a pre-sorted string array.

Implements iStrVector.

virtual char* scfStrVector::Get int    iIndex const [virtual]
 

Get Nth string in vector.

Implements iStrVector.

virtual void scfStrVector::Insert int    iIndex,
char *    iValue
[virtual]
 

Insert a string before Nth string in the array.

Implements iStrVector.

virtual int scfStrVector::Length   const [virtual]
 

Query array length.

Implements iStrVector.

virtual char* scfStrVector::Pop   [virtual]
 

Pop a string from the top of stack.

Implements iStrVector.

virtual void scfStrVector::Push char *    iValue [virtual]
 

Push a string onto the stack.

Implements iStrVector.

virtual void scfStrVector::QuickSort   [virtual]
 

Sort the string array.

Implements iStrVector.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14