|
UCommon
|
Allocated vector list of a specified type. More...
#include <vector.h>


Public Member Functions | |
| T * | begin (void) |
| Get the first typed object pointer contained in the fixed vector. | |
| T * | end (void) |
| Get the last typed object pointer contained in the fixed vector. | |
| T * | get (int index) |
| Get object pointer of specified type from fixed vector. | |
| T * | operator() (vectorsize_t position) |
| Retrieve a typed member of the fixed vector directly. | |
| Vector & | operator+ (Vector &vector) |
| Concatenate fixed typed vector in an expression. | |
| T & | operator[] (int index) |
| Return a pointer from the vector by array reference. | |
| vectorbuf () | |
| Construct fixed sized vector object in heap or stack. | |
Public Member Functions inherited from ucommon::MemVector | |
| MemVector (void *pointer, vectorsize_t size) | |
| Create and manage a vector stored in fixed memory. | |
| void | operator= (Vector &vector) |
| Assign an existing vector into our fixed vector list. | |
| ~MemVector () | |
| Destroy the vector. | |
Public Member Functions inherited from ucommon::Vector | |
| void | add (ObjectProtocol **list) |
| Add (append) a NULL terminated list of objects to the vector. | |
| void | add (ObjectProtocol *pointer) |
| Add (append) a single object pointer to the vector. | |
| void | add (Vector &vector) |
| Add (append) an existing vector to our vector. | |
| void | clear (void) |
| De-reference and remove all pointers from the vector. | |
| vectorsize_t | find (ObjectProtocol *pointer, vectorsize_t offset=0) |
| Find the first instance of a specific pointer in the vector. | |
| vectorsize_t | get (void **mem, vectorsize_t max) |
| Copy the vector to an external pointer array. | |
| vectorsize_t | len (void) |
| Get the size of the vector (number of active members). | |
| void | operator() (vectorsize_t position, ObjectProtocol *pointer) |
| Assign a member of the vector directly. | |
| void | operator() (ObjectProtocol *pointer) |
| Append a member to the vector directly. | |
| void | operator++ () |
| Drop first member of vector. | |
| void | operator+= (Vector &vector) |
| Append into our existing vector from another vector. | |
| void | operator+= (vectorsize_t count) |
| Drop first specified members from the vector. | |
| void | operator-- () |
| Drop last member of the vector. | |
| void | operator-= (vectorsize_t count) |
| Drop last specified members from the vector. | |
| Vector & | operator^ (Vector &vector) |
| Release vector and concat vector from another vector. | |
| void | operator^= (Vector &vector) |
| Release our existing vector and duplicate from another vector. | |
| void | rsplit (vectorsize_t position) |
| Split the vector after a specified offset. | |
| void | set (vectorsize_t position, ObjectProtocol *pointer) |
| Set a member of the vector to an object. | |
| void | set (ObjectProtocol **list) |
| Set the vector to a list of objects terminated by a NULL pointer. | |
| void | set (Vector &vector) |
| Set (duplicate) an existing vector into our vector. | |
| vectorsize_t | size (void) |
| Get the effective allocation space used by the vector. | |
| void | split (vectorsize_t position) |
| Split the vector at a specified offset. | |
| Vector () | |
| Create an initially empty vector. | |
| Vector (vectorsize_t size) | |
| Create a vector of size object pointers. | |
| Vector (ObjectProtocol **items, vectorsize_t size=0) | |
| Create a vector of size objects from existing object pointers. | |
| virtual | ~Vector () |
| Destroy the current reference counted vector of object pointers. | |
Allocated vector list of a specified type.
This analogous to the stringbuf class and allows one to create a vector with it's member list as a single object that can live in the heap or that can be created at once and used as a auto variable.
|
inline |
Get the first typed object pointer contained in the fixed vector.
Reimplemented from ucommon::Vector.
|
inline |
Get the last typed object pointer contained in the fixed vector.
Reimplemented from ucommon::Vector.
|
inline |
Get object pointer of specified type from fixed vector.
| index | of typed member to return, < 0 to use from end of list. |
Reimplemented from ucommon::Vector.
|
inline |
Retrieve a typed member of the fixed vector directly.
| position | to retrieve object from. |
Reimplemented from ucommon::Vector.
|
inline |
Concatenate fixed typed vector in an expression.
| vector | to concatenate. |
Reimplemented from ucommon::Vector.
Definition at line 735 of file vector.h.

|
inline |
Return a pointer from the vector by array reference.
| index | of vector member pointer to return. |
Reimplemented from ucommon::Vector.
1.8.1.1