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

Functions

static long compareReservationInfo (const void *aPtr, const void *bPtr)
 
static TM_CALLABLE long TMcompareReservationInfo (TM_ARGDECL const void *aPtr, const void *bPtr)
 
customer_tcustomer_alloc (TM_ARGDECL long id)
 
customer_tcustomer_alloc_seq (long id)
 
long customer_compare (customer_t *aPtr, customer_t *bPtr)
 
void customer_free (TM_ARGDECL customer_t *customerPtr)
 
bool_t customer_addReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id, long price)
 
bool_t customer_removeReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id)
 
long customer_getBill (TM_ARGDECL customer_t *customerPtr)
 

Variables

comparator_t
customer_comparereservationinfo & 
compareReservationInfo
 

Function Documentation

static long compareReservationInfo ( const void *  aPtr,
const void *  bPtr 
)
static

Here is the call graph for this function:

bool_t customer_addReservationInfo ( TM_ARGDECL customer_t customerPtr,
reservation_type_t  type,
long  id,
long  price 
)
customer_t* customer_alloc ( TM_ARGDECL long  id)
customer_t* customer_alloc_seq ( long  id)

Here is the call graph for this function:

Here is the caller graph for this function:

long customer_compare ( customer_t aPtr,
customer_t bPtr 
)
void customer_free ( TM_ARGDECL customer_t customerPtr)
long customer_getBill ( TM_ARGDECL customer_t customerPtr)
bool_t customer_removeReservationInfo ( TM_ARGDECL customer_t customerPtr,
reservation_type_t  type,
long  id 
)
static TM_CALLABLE long TMcompareReservationInfo ( TM_ARGDECL const void *  aPtr,
const void *  bPtr 
)
static

Here is the call graph for this function:

Variable Documentation

comparator_t customer_comparereservationinfo& compareReservationInfo