Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csNamedObjVector Class Reference

csNamedObjVector is a version of csObjVector that assumes all its components are csObject's which can be examined by name etc. More...

#include <nobjvec.h>

Inheritance diagram for csNamedObjVector:

csObjVector csVector csBasicVector List of all members.

Public Methods

 csNamedObjVector (int ilimit=8, int ithreshold=16)
 Constructor just passes control to csVector's.

csObjectFindByName (const char *iName) const
 Find an item in this vector by name and returns it (or NULL if not found).

virtual int Compare (csSome Item1, csSome Item2, int Mode) const
 Compare two objects by their names.

virtual int CompareKey (csSome Item, csConstSome Key, int Mode) const
 Compare object's name with a string.

csObjectGet (int idx) const
 Override Get() to avoid casting to csObject.


Detailed Description

csNamedObjVector is a version of csObjVector that assumes all its components are csObject's which can be examined by name etc.

All csVector methods should work with this class: Find, FindKey, QuickSort, FindSortedKey and so on.


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