#include <typedvec.h>
Inheritance diagram for csRestrictedAccessVector:
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'. |
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.