tlds
Transactional Operations for Linked Data Structures
|
Go to the source code of this file.
Classes | |
struct | vector |
Macros | |
#define | PVECTOR_ALLOC(n) Pvector_alloc(n) |
#define | PVECTOR_FREE(v) Pvector_free(v) |
#define | PVECTOR_PUSHBACK(v, data) Pvector_pushBack(v, data) |
#define | PVECTOR_POPBACK(v) vector_popBack(v) |
#define | PVECTOR_AT(v, i) vector_at(v, i) |
#define | PVECTOR_GETSIZE(v) vector_getSize(v) |
#define | PVECTOR_CLEAR(v) vector_clear(v) |
#define | PVECTOR_SORT(v, cmp) vector_sort(v, cmp) |
#define | PVECTOR_COPY(dst, src) Pvector_copy(dst, src) |
Typedefs | |
typedef struct vector | vector_t |
Functions | |
vector_t * | vector_alloc (long initCapacity) |
vector_t * | Pvector_alloc (long initCapacity) |
void | vector_free (vector_t *vectorPtr) |
void | Pvector_free (vector_t *vectorPtr) |
void * | vector_at (vector_t *vectorPtr, long i) |
bool_t | vector_pushBack (vector_t *vectorPtr, void *dataPtr) |
bool_t | Pvector_pushBack (vector_t *vectorPtr, void *dataPtr) |
void * | vector_popBack (vector_t *vectorPtr) |
long | vector_getSize (vector_t *vectorPtr) |
void | vector_clear (vector_t *vectorPtr) |
void | vector_sort (vector_t *vectorPtr, int(*compare)(const void *, const void *)) |
bool_t | vector_copy (vector_t *dstVectorPtr, vector_t *srcVectorPtr) |
bool_t | Pvector_copy (vector_t *dstVectorPtr, vector_t *srcVectorPtr) |
#define PVECTOR_ALLOC | ( | n | ) | Pvector_alloc(n) |
#define PVECTOR_AT | ( | v, | |
i | |||
) | vector_at(v, i) |
#define PVECTOR_CLEAR | ( | v | ) | vector_clear(v) |
#define PVECTOR_COPY | ( | dst, | |
src | |||
) | Pvector_copy(dst, src) |
#define PVECTOR_FREE | ( | v | ) | Pvector_free(v) |
#define PVECTOR_GETSIZE | ( | v | ) | vector_getSize(v) |
#define PVECTOR_POPBACK | ( | v | ) | vector_popBack(v) |
#define PVECTOR_PUSHBACK | ( | v, | |
data | |||
) | Pvector_pushBack(v, data) |
#define PVECTOR_SORT | ( | v, | |
cmp | |||
) | vector_sort(v, cmp) |
vector_t* Pvector_alloc | ( | long | initCapacity | ) |
void Pvector_free | ( | vector_t * | vectorPtr | ) |
vector_t* vector_alloc | ( | long | initCapacity | ) |
void* vector_at | ( | vector_t * | vectorPtr, |
long | i | ||
) |
void vector_clear | ( | vector_t * | vectorPtr | ) |
void vector_free | ( | vector_t * | vectorPtr | ) |
long vector_getSize | ( | vector_t * | vectorPtr | ) |
void* vector_popBack | ( | vector_t * | vectorPtr | ) |
void vector_sort | ( | vector_t * | vectorPtr, |
int(*)(const void *, const void *) | compare | ||
) |