CrystalSpace

Public API Reference

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

csStrVector Class Reference

csStrVector is a version of csVector which assumes its components were allocated with 'new char *[]'. More...

#include <csstrvec.h>

Inheritance diagram for csStrVector:

csVector csBasicVector List of all members.

Public Types

enum  
 Use these values as the Mode argument of QuickSort(), Compare(), and CompareKey() in order to control case sensitivity during sorting and comparison. More...


Public Methods

 csStrVector (int ilimit=64, int ithreshold=64)
 Constructor just passes control to csVector's. More...

virtual ~csStrVector ()
 Delete all inserted strings before deleting the object itself. More...

virtual bool FreeItem (void *Item)
 FreeItem deletes Item as if it was allocated by 'new char *[]'. More...

virtual int Compare (void *Item1, void *Item2, int Mode) const
 Compare two array elements in given Mode. More...

virtual int CompareKey (void *Item, const void *Key, int Mode) const
 Compare two strings for equality (case-sensitive). More...

char * Get (int n) const
 Overrided Get() to avoid type conversions. More...


Detailed Description

csStrVector is a version of csVector which assumes its components were allocated with 'new char *[]'.

FreeItem () deletes vector elements using 'delete [] (char *)' operator.

Definition at line 30 of file csstrvec.h.


Member Enumeration Documentation

anonymous enum
 

Use these values as the Mode argument of QuickSort(), Compare(), and CompareKey() in order to control case sensitivity during sorting and comparison.

(See csVector for a description of QuickSort()).

Definition at line 38 of file csstrvec.h.


Constructor & Destructor Documentation

csStrVector::csStrVector int    ilimit = 64,
int    ithreshold = 64
[inline]
 

Constructor just passes control to csVector's.

Definition at line 41 of file csstrvec.h.

virtual csStrVector::~csStrVector   [virtual]
 

Delete all inserted strings before deleting the object itself.


Member Function Documentation

virtual int csStrVector::Compare void *    Item1,
void *    Item2,
int    Mode
const [virtual]
 

Compare two array elements in given Mode.

Reimplemented from csVector.

virtual int csStrVector::CompareKey void *    Item,
const void *    Key,
int    Mode
const [virtual]
 

Compare two strings for equality (case-sensitive).

Reimplemented from csVector.

virtual bool csStrVector::FreeItem void *    Item [virtual]
 

FreeItem deletes Item as if it was allocated by 'new char *[]'.

Reimplemented from csVector.

char* csStrVector::Get int    n const [inline]
 

Overrided Get() to avoid type conversions.

Reimplemented from csBasicVector.

Definition at line 57 of file csstrvec.h.

References csBasicVector::Get.


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