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

Macros

#define CHECK_RESERVATION(reservation)   checkReservation(TM_ARG reservation)
 

Functions

static TM_CALLABLE void checkReservation (TM_ARGDECL reservation_t *reservationPtr)
 
reservation_info_treservation_info_alloc (TM_ARGDECL reservation_type_t type, long id, long price)
 
void reservation_info_free (TM_ARGDECL reservation_info_t *reservationInfoPtr)
 
long reservation_info_compare (reservation_info_t *aPtr, reservation_info_t *bPtr)
 
static void checkReservation_seq (reservation_t *reservationPtr)
 
reservation_treservation_alloc (TM_ARGDECL long id, long numTotal, long price)
 
reservation_treservation_alloc_seq (long id, long numTotal, long price)
 
bool_t reservation_addToTotal (TM_ARGDECL reservation_t *reservationPtr, long num)
 
bool_t reservation_addToTotal_seq (reservation_t *reservationPtr, long num)
 
bool_t reservation_make (TM_ARGDECL reservation_t *reservationPtr)
 
bool_t reservation_make_seq (reservation_t *reservationPtr)
 
bool_t reservation_cancel (TM_ARGDECL reservation_t *reservationPtr)
 
bool_t reservation_cancel_seq (reservation_t *reservationPtr)
 
bool_t reservation_updatePrice (TM_ARGDECL reservation_t *reservationPtr, long newPrice)
 
bool_t reservation_updatePrice_seq (reservation_t *reservationPtr, long newPrice)
 
long reservation_compare (reservation_t *aPtr, reservation_t *bPtr)
 
ulong_t reservation_hash (reservation_t *reservationPtr)
 
void reservation_free (TM_ARGDECL reservation_t *reservationPtr)
 

Macro Definition Documentation

#define CHECK_RESERVATION (   reservation)    checkReservation(TM_ARG reservation)

Function Documentation

static void checkReservation ( TM_ARGDECL reservation_t reservationPtr)
static
static void checkReservation_seq ( reservation_t reservationPtr)
static

Here is the caller graph for this function:

bool_t reservation_addToTotal ( TM_ARGDECL reservation_t reservationPtr,
long  num 
)
bool_t reservation_addToTotal_seq ( reservation_t reservationPtr,
long  num 
)

Here is the call graph for this function:

Here is the caller graph for this function:

reservation_t* reservation_alloc ( TM_ARGDECL long  id,
long  numTotal,
long  price 
)
reservation_t* reservation_alloc_seq ( long  id,
long  numTotal,
long  price 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t reservation_cancel ( TM_ARGDECL reservation_t reservationPtr)
bool_t reservation_cancel_seq ( reservation_t reservationPtr)

Here is the call graph for this function:

long reservation_compare ( reservation_t aPtr,
reservation_t bPtr 
)
void reservation_free ( TM_ARGDECL reservation_t reservationPtr)
ulong_t reservation_hash ( reservation_t reservationPtr)
reservation_info_t* reservation_info_alloc ( TM_ARGDECL reservation_type_t  type,
long  id,
long  price 
)
long reservation_info_compare ( reservation_info_t aPtr,
reservation_info_t bPtr 
)

Here is the caller graph for this function:

void reservation_info_free ( TM_ARGDECL reservation_info_t reservationInfoPtr)
bool_t reservation_make ( TM_ARGDECL reservation_t reservationPtr)
bool_t reservation_make_seq ( reservation_t reservationPtr)

Here is the call graph for this function:

bool_t reservation_updatePrice ( TM_ARGDECL reservation_t reservationPtr,
long  newPrice 
)
bool_t reservation_updatePrice_seq ( reservation_t reservationPtr,
long  newPrice 
)

Here is the call graph for this function:

Here is the caller graph for this function: