Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csRestrictedAccessVector Class Reference

Subclass of csVector that restricts access to the contained objects. More...

#include <typedvec.h>

Inheritance diagram for csRestrictedAccessVector:

csVector csBasicVector List of all members.

Public Methods

virtual bool PrepareItem (csSome)
virtual bool FreeItem (csSome)
 Virtual function which frees a vector element; returns success status.

 csRestrictedAccessVector (int lim, int thr)
bool Delete (int n)
 Delete element number 'n' from vector (attention: non virtual!).

bool Delete (csSome what)
 Delete the given element from vector (attention: non virtual!).

void DeleteAll ()
int Push (csSome what)
 Push a element on 'top' of vector.

int PushSmart (csSome what)
 Push an elemen on top of the vector if it is not yet contained.

bool Insert (int n, csSome Item)
 Insert element 'Item' before element 'n'.

int InsertSorted (csSome Item, int *oEqual=NULL, int Mode=0)
 Insert element 'Item' so that array remains sorted (assumes its already).

bool Replace (int n, csSome what)
csSome Pop ()
 Pop a element from vector 'top'.


Detailed Description

Subclass of csVector that restricts access to the contained objects.

The contents of the vector may not be assigned directly anymore. For every added element, the PrepareItem() function is called. For every removed element, the FreeItem() function is called.

All three functions may return false to abort the push/pop/remove operation.


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