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

Go to the source code of this file.

Classes

struct  reservation_info
 
struct  reservation
 

Macros

#define RESERVATION_INFO_ALLOC(type, id, price)   reservation_info_alloc(TM_ARG type, id, price)
 
#define RESERVATION_INFO_FREE(r)   reservation_info_free(TM_ARG r)
 
#define RESERVATION_ALLOC(id, price, tot)   reservation_alloc(TM_ARG id, price, tot)
 
#define RESERVATION_ADD_TO_TOTAL(r, num)   reservation_addToTotal(TM_ARG r, num)
 
#define RESERVATION_MAKE(r)   reservation_make(TM_ARG r)
 
#define RESERVATION_CANCEL(r)   reservation_cancel(TM_ARG r)
 
#define RESERVATION_UPDATE_PRICE(r, price)   reservation_updatePrice(TM_ARG r, price)
 
#define RESERVATION_FREE(r)   reservation_free(TM_ARG r)
 

Typedefs

typedef enum reservation_type reservation_type_t
 
typedef struct reservation_info reservation_info_t
 
typedef struct reservation reservation_t
 

Enumerations

enum  reservation_type { RESERVATION_CAR, RESERVATION_FLIGHT, RESERVATION_ROOM, NUM_RESERVATION_TYPE }
 

Functions

TM_CALLABLE reservation_info_treservation_info_alloc (TM_ARGDECL reservation_type_t type, long id, long price)
 
TM_CALLABLE void reservation_info_free (TM_ARGDECL reservation_info_t *reservationInfoPtr)
 
TM_CALLABLE long reservation_info_compare (reservation_info_t *aPtr, reservation_info_t *bPtr)
 
TM_CALLABLE reservation_treservation_alloc (TM_ARGDECL long id, long price, long numTotal)
 
reservation_treservation_alloc_seq (long id, long price, long numTotal)
 
TM_CALLABLE bool_t reservation_addToTotal (TM_ARGDECL reservation_t *reservationPtr, long num)
 
bool_t reservation_addToTotal_seq (reservation_t *reservationPtr, long num)
 
TM_CALLABLE bool_t reservation_make (TM_ARGDECL reservation_t *reservationPtr)
 
bool_t reservation_make_seq (reservation_t *reservationPtr)
 
TM_CALLABLE bool_t reservation_cancel (TM_ARGDECL reservation_t *reservationPtr)
 
bool_t reservation_cancel_seq (reservation_t *reservationPtr)
 
TM_CALLABLE 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)
 
TM_CALLABLE void reservation_free (TM_ARGDECL reservation_t *reservationPtr)
 

Macro Definition Documentation

#define RESERVATION_ADD_TO_TOTAL (   r,
  num 
)    reservation_addToTotal(TM_ARG r, num)
#define RESERVATION_ALLOC (   id,
  price,
  tot 
)    reservation_alloc(TM_ARG id, price, tot)
#define RESERVATION_CANCEL (   r)    reservation_cancel(TM_ARG r)
#define RESERVATION_FREE (   r)    reservation_free(TM_ARG r)
#define RESERVATION_INFO_ALLOC (   type,
  id,
  price 
)    reservation_info_alloc(TM_ARG type, id, price)
#define RESERVATION_INFO_FREE (   r)    reservation_info_free(TM_ARG r)
#define RESERVATION_MAKE (   r)    reservation_make(TM_ARG r)
#define RESERVATION_UPDATE_PRICE (   r,
  price 
)    reservation_updatePrice(TM_ARG r, price)

Typedef Documentation

typedef struct reservation reservation_t

Enumeration Type Documentation

Enumerator
RESERVATION_CAR 
RESERVATION_FLIGHT 
RESERVATION_ROOM 
NUM_RESERVATION_TYPE 

Function Documentation

TM_CALLABLE 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:

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

Here is the call graph for this function:

Here is the caller graph for this function:

TM_CALLABLE 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 
)
TM_CALLABLE void reservation_free ( TM_ARGDECL reservation_t reservationPtr)
ulong_t reservation_hash ( reservation_t reservationPtr)
TM_CALLABLE reservation_info_t* reservation_info_alloc ( TM_ARGDECL reservation_type_t  type,
long  id,
long  price 
)
TM_CALLABLE long reservation_info_compare ( reservation_info_t aPtr,
reservation_info_t bPtr 
)

Here is the caller graph for this function:

TM_CALLABLE void reservation_info_free ( TM_ARGDECL reservation_info_t reservationInfoPtr)
TM_CALLABLE 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:

TM_CALLABLE 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: