Google

Main Page   Class Hierarchy   Compound List   File List   Compound 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  { CASE_SENSITIVE, CASE_INSENSITIVE }
 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.

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

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

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

virtual int CompareKey (csSome Item, csConstSome Key, int Mode) const
 Compare two strings for equality (case-sensitive).

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


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.


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()).


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000