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

Go to the source code of this file.

Classes

struct  customer
 

Macros

#define CUSTOMER_ALLOC(id)   customer_alloc(TM_ARG id)
 
#define CUSTOMER_ADD_RESERVATION_INFO(cust, type, id, price)   customer_addReservationInfo(TM_ARG cust, type, id, price)
 
#define CUSTOMER_REMOVE_RESERVATION_INFO(cust, type, id)   customer_removeReservationInfo(TM_ARG cust, type, id)
 
#define CUSTOMER_GET_BILL(cust)   customer_getBill(TM_ARG cust)
 
#define CUSTOMER_FREE(cust)   customer_free(TM_ARG cust)
 

Typedefs

typedef struct customer customer_t
 

Functions

TM_CALLABLE customer_tcustomer_alloc (TM_ARGDECL long id)
 
customer_tcustomer_alloc_seq (long id)
 
long customer_compare (customer_t *aPtr, customer_t *bPtr)
 
unsigned long customer_hash (customer_t *customerPtr)
 
TM_CALLABLE void customer_free (TM_ARGDECL customer_t *customerPtr)
 
TM_CALLABLE bool_t customer_addReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id, long price)
 
bool_t customer_addReservationInfo_seq (customer_t *customerPtr, reservation_type_t type, long id, long price)
 
TM_CALLABLE bool_t customer_removeReservationInfo (TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id)
 
TM_CALLABLE long customer_getBill (TM_ARGDECL customer_t *customerPtr)
 
long customer_getBill_seq (customer_t *customerPtr)
 

Macro Definition Documentation

#define CUSTOMER_ADD_RESERVATION_INFO (   cust,
  type,
  id,
  price 
)    customer_addReservationInfo(TM_ARG cust, type, id, price)
#define CUSTOMER_ALLOC (   id)    customer_alloc(TM_ARG id)
#define CUSTOMER_FREE (   cust)    customer_free(TM_ARG cust)
#define CUSTOMER_GET_BILL (   cust)    customer_getBill(TM_ARG cust)
#define CUSTOMER_REMOVE_RESERVATION_INFO (   cust,
  type,
  id 
)    customer_removeReservationInfo(TM_ARG cust, type, id)

Typedef Documentation

typedef struct customer customer_t

Function Documentation

TM_CALLABLE bool_t customer_addReservationInfo ( TM_ARGDECL customer_t customerPtr,
reservation_type_t  type,
long  id,
long  price 
)
bool_t customer_addReservationInfo_seq ( customer_t customerPtr,
reservation_type_t  type,
long  id,
long  price 
)
TM_CALLABLE 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 
)
TM_CALLABLE void customer_free ( TM_ARGDECL customer_t customerPtr)
TM_CALLABLE long customer_getBill ( TM_ARGDECL customer_t customerPtr)
long customer_getBill_seq ( customer_t customerPtr)
unsigned long customer_hash ( customer_t customerPtr)
TM_CALLABLE bool_t customer_removeReservationInfo ( TM_ARGDECL customer_t customerPtr,
reservation_type_t  type,
long  id 
)