tlds
Transactional Operations for Linked Data Structures
|
#include <stdlib.h>
#include <string.h>
#include "tm.h"
#include "types.h"
#include "utility.h"
#include "vector.h"
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) |
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 | ||
) |