![]() |
Public API Reference |
#include <csvector.h>
Inheritance diagram for csBasicVector:

Public Methods | |
| csBasicVector (int ilimit=0, int ithreshold=0) | |
| Initialize object to hold initially 'ilimit' elements, and increase storage by 'ithreshold' each time the upper bound is exceeded. More... | |
| virtual | ~csBasicVector () |
| Destroy the container but none of the objects to which it points. More... | |
| void *& | operator[] (int n) |
| Get a reference to n-th element. More... | |
| void *& | operator[] (int n) const |
| Same but doesn't call SetLength () in the event n is out of bounds. More... | |
| void *& | Get (int n) const |
| Same but in function form. More... | |
| void | SetLength (int n) |
| Set vector length to n. More... | |
| int | Length () const |
| Query vector length. More... | |
| int | Limit () const |
| Query vector limit. More... | |
| bool | Delete (int n) |
| Delete element number 'n' from vector (attention: non virtual!). More... | |
| bool | DeleteChunk (int n, int size) |
| Delete a chunk of size at the position 'n' (yeah, non virtual too). More... | |
| bool | Delete (void *Item) |
| Delete the given element from vector (attention: non virtual!). More... | |
| void | Exchange (int n1, int n2) |
| Exchange two elements in array. More... | |
| int | Find (void *which) const |
| Find a element in array and return its index (or -1 if not found). More... | |
| int | Push (void *what) |
| Push a element on 'top' of vector. More... | |
| int | PushSmart (void *what) |
| Push an elemen on top of the vector if it is not yet contained. More... | |
| void * | Pop () |
| Pop a element from vector 'top'. More... | |
| void * | Top () const |
| Return the top element but don't remove it. More... | |
| bool | Insert (int n, void *Item) |
| Insert element 'Item' before element 'n'. More... | |
| bool | InsertChunk (int n, int size, void **Item) |
| Insert a chunk of size at the position 'n'. More... | |
Definition at line 41 of file csvector.h.
|
||||||||||||
|
Initialize object to hold initially 'ilimit' elements, and increase storage by 'ithreshold' each time the upper bound is exceeded.
|
|
|
Destroy the container but none of the objects to which it points.
|
|
|
Delete the given element from vector (attention: non virtual!).
Definition at line 187 of file csvector.h. |
|
|
Delete element number 'n' from vector (attention: non virtual!).
Referenced by Delete. |
|
||||||||||||
|
Delete a chunk of size at the position 'n' (yeah, non virtual too).
|
|
||||||||||||
|
Exchange two elements in array.
Definition at line 222 of file csvector.h. |
|
|
Find a element in array and return its index (or -1 if not found).
Referenced by csVector::Delete, Delete, PushSmart, and csTreeNode::RemoveChild. |
|
|
Same but in function form.
Reimplemented in csStrVector. Definition at line 170 of file csvector.h. Referenced by csTreeNode::BSF, csTreeNode::DSF, csWSTexVector::Get, csStrVector::Get, csSkin::Get, csConstraintVector::Get, csSparseGrid::GetAt, csAnimationTemplate::GetLength, and csGrid::GetRootView. |
|
||||||||||||
|
Insert element 'Item' before element 'n'.
|
|
||||||||||||||||
|
Insert a chunk of size at the position 'n'.
|
|
|
Query vector length.
Definition at line 182 of file csvector.h. Referenced by csTreeNode::BSF, csTreeNode::DSF, and csTreeNode::IsLeaf. |
|
|
Query vector limit.
Definition at line 177 of file csvector.h. |
|
|
Same but doesn't call SetLength () in the event n is out of bounds.
Definition at line 163 of file csvector.h. |
|
|
Get a reference to n-th element.
Definition at line 155 of file csvector.h. References SetLength. |
|
|
Pop a element from vector 'top'.
Definition at line 207 of file csvector.h. References SetLength. |
|
|
Push a element on 'top' of vector.
Definition at line 194 of file csvector.h. References SetLength. Referenced by csTreeNode::AddChild, csAnimationTemplate::AddFrame, csTreeNode::BSF, csTreeNode::csTreeNode, and PushSmart. |
|
|
Push an elemen on top of the vector if it is not yet contained.
Definition at line 201 of file csvector.h. |
|
|
Set vector length to n.
Referenced by operator[], Pop, and Push. |
|
|
Return the top element but don't remove it.
Definition at line 217 of file csvector.h. |