Collaboration diagram for Vector Container:
|
Files | |
| file | psVector.h |
| Contains basic vector definitions and operations. | |
Data Structures | |
| union | p_psVectorData |
| < Union of psVector data types. More... | |
| struct | psVector |
| An vector to support primitive types. More... | |
Functions | |
| psVector * | psVectorAlloc (psU32 nalloc, psElemType dataType) |
| Allocate a vector. | |
| psVector * | psVectorRealloc (psVector *psVec, psU32 nalloc) |
| Reallocate a vector. | |
| psVector * | psVectorExtend (psVector *vector, int delta, int nExtend) |
| Extend a vector's length. | |
| psVector * | psVectorRecycle (psVector *psVec, psU32 nalloc, psElemType type) |
| Recycle a vector. | |
| psVector * | psVectorCopy (psVector *out, const psVector *in, psElemType type) |
| Copy a vector, converting types. | |
| psVector * | psVectorSort (psVector *outVector, const psVector *inVector) |
| Sort an array of floats. | |
| psVector * | psVectorSortIndex (psVector *outVector, const psVector *inVector) |
| Creates an array of indices based on sort ordered of array. | |
| char * | psVectorToString (psVector *vector, int maxLength) |
| Creates a string from a psVector's values in the form "[x0,x1,x2]". | |
| psF64 | p_psVectorGetElementF64 (psVector *vector, int position) |
| Returns an element in the vector as a psF64 value. | |
| bool | p_psVectorPrint (FILE *f, psVector *a, char *name) |
| Print a vector to a stream. | |
|
||||||||||||
|
Returns an element in the vector as a psF64 value.
|
|
||||||||||||||||
|
Print a vector to a stream.
|
|
||||||||||||
|
Allocate a vector. Uses psLib memory allocation functions to create a vector collection of data as defined by the psType type.
|
|
||||||||||||||||
|
Copy a vector, converting types. Performs a deep copy of the elements of one psVector to a new psVector, converting numeric types to a specified type.
|
|
||||||||||||||||
|
Extend a vector's length. Increments a vector's length, n, by the specified number of elements. If the allocated storage is less than the current vector's length plus twice the number of elements to be added, it is reallocated larger by a given amount.
|
|
||||||||||||
|
Reallocate a vector. Uses psLib memory allocation functions to reallocate a vector collection of data. The vector is reallocated according to the psType type member contained within the vector.
|
|
||||||||||||||||
|
Recycle a vector. Uses psLib memory allocation functions to reallocate a vector collection of data. The vector is reallocated according to the psElemType type parameter.
|
|
||||||||||||
|
Sort an array of floats. Sorts an array of floats in ascending order. This function is valid for all non-complex data types.
|
|
||||||||||||
|
Creates an array of indices based on sort ordered of array. Sorts a vector and creates an integer array holding indices of sorted float values based on pre-sort index positions.
|
|
||||||||||||
|
Creates a string from a psVector's values in the form "[x0,x1,x2]".
|
1.4.1