scfStringArray Class Reference
This class is a thin wrapper around csStringArray with SCF capability. More...
#include <csutil/scfstringarray.h>
Inheritance diagram for scfStringArray:

Public Member Functions | |
virtual size_t | Contains (const char *str, bool case_sensitive=true) const |
Alias for Find() and FindCaseInsensitive(). | |
virtual void | DeleteAll () |
Remove all strings from array. | |
virtual bool | DeleteIndex (size_t n) |
Delete string n from the array. | |
virtual void | Empty () |
Remove all strings from array, releasing allocated memory. | |
virtual size_t | Find (const char *value) const |
Find a string, case-sensitive. | |
virtual size_t | FindCaseInsensitive (const char *value) const |
Find a string, case-insensitive. | |
virtual size_t | FindSortedKey (const char *value) const |
Find an element based on some key, using a comparison function. | |
virtual char const * | Get (size_t n) const |
Get a particular string from the array. | |
virtual size_t | GetSize () const |
Get array length. | |
virtual bool | Insert (size_t n, char const *value) |
Insert a string before entry n in the array. | |
virtual bool | IsEmpty () const |
Return true if the array is empty. | |
virtual size_t | Length () const |
Get array length. | |
virtual char * | Pop () |
Pop an element from tail end of array. | |
virtual void | Push (char const *value) |
Push a string onto the stack. | |
scfStringArray (int limit=16, int delta=16) | |
Create a iStringArray from scratch. | |
virtual void | Sort (bool case_sensitive=true) |
Sort array. | |
virtual | ~scfStringArray () |
Destructor - nothing to do. |
Detailed Description
This class is a thin wrapper around csStringArray with SCF capability.
Definition at line 33 of file scfstringarray.h.
Constructor & Destructor Documentation
|
Create a iStringArray from scratch.
Definition at line 41 of file scfstringarray.h. |
|
Destructor - nothing to do.
Definition at line 46 of file scfstringarray.h. |
Member Function Documentation
|
Alias for Find() and FindCaseInsensitive().
Implements iStringArray. Definition at line 129 of file scfstringarray.h. References csStringArray::Contains(). |
|
Remove all strings from array.
Implements iStringArray. Definition at line 166 of file scfstringarray.h. References Empty(). |
|
Delete string
Implements iStringArray. Definition at line 145 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::DeleteIndex(). |
|
Remove all strings from array, releasing allocated memory.
Implements iStringArray. Definition at line 157 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::Empty(). Referenced by DeleteAll(). |
|
Find a string, case-sensitive.
Implements iStringArray. Definition at line 92 of file scfstringarray.h. References csStringArray::Find(). |
|
Find a string, case-insensitive.
Implements iStringArray. Definition at line 103 of file scfstringarray.h. References csStringArray::FindCaseInsensitive(). |
|
Find an element based on some key, using a comparison function.
Implements iStringArray. Definition at line 113 of file scfstringarray.h. References csStringArray::FindSortedKey(). |
|
Get a particular string from the array.
Implements iStringArray. Definition at line 81 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::Get(). |
|
Get array length.
Implements iStringArray. Definition at line 50 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::Length(). Referenced by Length(). |
|
Insert a string before entry
Implements iStringArray. Definition at line 151 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::Insert(). |
|
Return true if the array is empty.
Implements iStringArray. Definition at line 176 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::IsEmpty(). |
|
Get array length.
Implements iStringArray. Definition at line 59 of file scfstringarray.h. References GetSize(). |
|
Pop an element from tail end of array.
Implements iStringArray. Definition at line 75 of file scfstringarray.h. References csStringArray::Pop(). |
|
Push a string onto the stack.
Implements iStringArray. Definition at line 65 of file scfstringarray.h. References csArray< T, ElementHandler, MemoryAllocator >::Push(). |
|
Sort array.
Implements iStringArray. Definition at line 139 of file scfstringarray.h. References csStringArray::Sort(). |
The documentation for this class was generated from the following file:
- csutil/scfstringarray.h
Generated for Crystal Space by doxygen 1.4.6