tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vector.h File Reference
#include "tm.h"
#include "types.h"
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:

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_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)
 

Macro Definition Documentation

#define PVECTOR_ALLOC (   n)    Pvector_alloc(n)
#define PVECTOR_AT (   v,
 
)    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)

Typedef Documentation

typedef struct vector vector_t

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: