tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vector.c File Reference
#include <stdlib.h>
#include <string.h>
#include "tm.h"
#include "types.h"
#include "utility.h"
#include "vector.h"
Include dependency graph for vector.c:

Functions

vector_tvector_alloc (long initCapacity)
 
vector_tPvector_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)
 

Function Documentation

vector_t* Pvector_alloc ( long  initCapacity)
bool_t Pvector_copy ( vector_t dstVectorPtr,
vector_t srcVectorPtr 
)

Here is the call graph for this function:

void Pvector_free ( vector_t vectorPtr)
bool_t Pvector_pushBack ( vector_t vectorPtr,
void *  dataPtr 
)
vector_t* vector_alloc ( long  initCapacity)

Here is the caller graph for this function:

void* vector_at ( vector_t vectorPtr,
long  i 
)

Here is the caller graph for this function:

void vector_clear ( vector_t vectorPtr)

Here is the caller graph for this function:

bool_t vector_copy ( vector_t dstVectorPtr,
vector_t srcVectorPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void vector_free ( vector_t vectorPtr)

Here is the caller graph for this function:

long vector_getSize ( vector_t vectorPtr)

Here is the caller graph for this function:

void* vector_popBack ( vector_t vectorPtr)

Here is the caller graph for this function:

bool_t vector_pushBack ( vector_t vectorPtr,
void *  dataPtr 
)

Here is the caller graph for this function:

void vector_sort ( vector_t vectorPtr,
int(*)(const void *, const void *)  compare 
)

Here is the caller graph for this function: