Conceptually similar to an STL vector<>, however designed to hide its implementation to reduce code bloat and enable binary compatibility.
|
Public Types |
typedef TYPE | value_type |
Public Member Functions |
ssize_t | AddArray (const TYPE *array, size_t count) |
ssize_t | AddArrayAt (const TYPE *array, size_t count, size_t index) |
ssize_t | AddItem (const TYPE &item) |
ssize_t | AddItem () |
ssize_t | AddItemAt (const TYPE &item, size_t index) |
ssize_t | AddItemAt (size_t index) |
ssize_t | AddVector (const SVector< TYPE > &o) |
ssize_t | AddVectorAt (const SVector< TYPE > &o, size_t index) |
const TYPE * | Array () const |
SValue | AsValue () const |
size_t | Capacity () const |
size_t | CountItems () const |
TYPE * | EditArray () |
TYPE & | EditItemAt (size_t i) |
TYPE & | EditTop () |
const TYPE & | ItemAt (size_t i) const |
void | MakeEmpty () |
status_t | MoveItems (size_t newIndex, size_t oldIndex, size_t count=1) |
SVector< TYPE > & | operator= (const SVector< TYPE > &o) |
const TYPE & | operator[] (size_t i) const |
void | Pop () |
void | Push (const TYPE &item) |
void | Push () |
void | RemoveItemsAt (size_t index, size_t count=1) |
ssize_t | ReplaceItemAt (const TYPE &item, size_t index) |
void | SetCapacity (size_t total_space) |
void | SetExtraCapacity (size_t extra_space) |
status_t | SetFromValue (const SValue &value) |
status_t | SetSize (size_t total_count, const TYPE &protoElement) |
status_t | SetSize (size_t total_count) |
| SVector (const SVector< TYPE > &o) |
| SVector () |
void | Swap (SVector< TYPE > &o) |
const TYPE & | Top () const |
virtual | ~SVector () |
Static Public Member Functions |
static void | MoveAfter (SVector< TYPE > &to, SVector< TYPE > &from, size_t count) |
static void | MoveBefore (SVector< TYPE > &to, SVector< TYPE > &from, size_t count) |
Protected Member Functions |
SAbstractVector & | AbstractVector () |
virtual void | PerformAssign (void *to, const void *from, size_t count) const |
virtual SValue | PerformAsValue (const void *from, size_t count) const |
virtual void | PerformConstruct (void *base, size_t count) const |
virtual void | PerformCopy (void *to, const void *from, size_t count) const |
virtual void | PerformDestroy (void *base, size_t count) const |
virtual void | PerformMoveAfter (void *to, void *from, size_t count) const |
virtual void | PerformMoveBefore (void *to, void *from, size_t count) const |
virtual void | PerformReplicate (void *to, const void *protoElement, size_t count) const |
virtual status_t | PerformSetFromValue (void *to, const SValue &value, size_t count) |