CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

scfStringArray Class Reference

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

#include <csutil/scfstringarray.h>

Inheritance diagram for scfStringArray:

iStringArray iBase List of all members.

Public Member Functions

 scfStringArray (int iLimit=16, int iDelta=16)
 Create a iStringArray from scratch.
virtual ~scfStringArray ()
 Destructor - nothing to do.
virtual size_t Length () const
 Query array length.
virtual void Push (char const *value)
 Push a string onto the stack.
virtual char * Pop ()
 Pop a string from the top of stack.
virtual char const * Get (size_t n) const
 Get Nth string in vector.
virtual size_t Find (const char *value) const
 Find index of given string, case sensitive.
virtual size_t FindCaseInsensitive (const char *value) const
 Find index of given string, case insensitive.
virtual size_t FindSortedKey (const char *value) const
 Find index of a string in a pre-sorted string array.
virtual void Sort ()
 Sort the string array.
virtual bool DeleteIndex (size_t n)
 Delete Nth string in the array.
virtual bool Insert (size_t n, char const *value)
 Insert a string before Nth string in the array.
virtual void DeleteAll ()
 Delete all strings in array.

Detailed Description

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

Definition at line 28 of file scfstringarray.h.


Constructor & Destructor Documentation

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

Create a iStringArray from scratch.

Definition at line 36 of file scfstringarray.h.

References SCF_CONSTRUCT_IBASE.

virtual scfStringArray::~scfStringArray  )  [inline, virtual]
 

Destructor - nothing to do.

Definition at line 40 of file scfstringarray.h.

References SCF_DESTRUCT_IBASE.


Member Function Documentation

virtual void scfStringArray::DeleteAll  )  [inline, virtual]
 

Delete all strings in array.

Implements iStringArray.

Definition at line 104 of file scfstringarray.h.

virtual bool scfStringArray::DeleteIndex size_t  n  )  [inline, virtual]
 

Delete Nth string in the array.

Implements iStringArray.

Definition at line 92 of file scfstringarray.h.

virtual size_t scfStringArray::Find const char *  value  )  const [inline, virtual]
 

Find index of given string, case sensitive.

Implements iStringArray.

Definition at line 68 of file scfstringarray.h.

virtual size_t scfStringArray::FindCaseInsensitive const char *  value  )  const [inline, virtual]
 

Find index of given string, case insensitive.

Implements iStringArray.

Definition at line 74 of file scfstringarray.h.

virtual size_t scfStringArray::FindSortedKey const char *  value  )  const [inline, virtual]
 

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

Implements iStringArray.

Definition at line 80 of file scfstringarray.h.

virtual char const* scfStringArray::Get size_t  n  )  const [inline, virtual]
 

Get Nth string in vector.

Implements iStringArray.

Definition at line 62 of file scfstringarray.h.

virtual bool scfStringArray::Insert size_t  n,
char const *  value
[inline, virtual]
 

Insert a string before Nth string in the array.

Implements iStringArray.

Definition at line 98 of file scfstringarray.h.

virtual size_t scfStringArray::Length  )  const [inline, virtual]
 

Query array length.

Implements iStringArray.

Definition at line 44 of file scfstringarray.h.

virtual char* scfStringArray::Pop  )  [inline, virtual]
 

Pop a string from the top of stack.

Implements iStringArray.

Definition at line 56 of file scfstringarray.h.

virtual void scfStringArray::Push char const *  value  )  [inline, virtual]
 

Push a string onto the stack.

Implements iStringArray.

Definition at line 50 of file scfstringarray.h.

virtual void scfStringArray::Sort  )  [inline, virtual]
 

Sort the string array.

Implements iStringArray.

Definition at line 86 of file scfstringarray.h.


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