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

Functions

static TM_CALLABLE long queryNumFree (TM_ARGDECL MAP_T *tablePtr, long id)
 
static TM_CALLABLE long queryPrice (TM_ARGDECL MAP_T *tablePtr, long id)
 
static TM_CALLABLE bool_t reserve (TM_ARGDECL MAP_T *tablePtr, MAP_T *customerTablePtr, long customerId, long id, reservation_type_t type)
 
static TM_CALLABLE bool_t addReservation (TM_ARGDECL MAP_T *tablePtr, long id, long num, long price)
 
static MAP_T * tableAlloc ()
 
manager_tmanager_alloc ()
 
static void tableFree (MAP_T *mapPtr)
 
void manager_free (manager_t *managerPtr)
 
static bool_t addReservation_seq (MAP_T *tablePtr, long id, long num, long price)
 
bool_t manager_addCar (TM_ARGDECL manager_t *managerPtr, long carId, long numCars, long price)
 
bool_t manager_addCar_seq (manager_t *managerPtr, long carId, long numCars, long price)
 
bool_t manager_deleteCar (TM_ARGDECL manager_t *managerPtr, long carId, long numCar)
 
bool_t manager_addRoom (TM_ARGDECL manager_t *managerPtr, long roomId, long numRoom, long price)
 
bool_t manager_addRoom_seq (manager_t *managerPtr, long roomId, long numRoom, long price)
 
bool_t manager_deleteRoom (TM_ARGDECL manager_t *managerPtr, long roomId, long numRoom)
 
bool_t manager_addFlight (TM_ARGDECL manager_t *managerPtr, long flightId, long numSeat, long price)
 
bool_t manager_addFlight_seq (manager_t *managerPtr, long flightId, long numSeat, long price)
 
bool_t manager_deleteFlight (TM_ARGDECL manager_t *managerPtr, long flightId)
 
bool_t manager_addCustomer (TM_ARGDECL manager_t *managerPtr, long customerId)
 
bool_t manager_addCustomer_seq (manager_t *managerPtr, long customerId)
 
bool_t manager_deleteCustomer (TM_ARGDECL manager_t *managerPtr, long customerId)
 
long manager_queryCar (TM_ARGDECL manager_t *managerPtr, long carId)
 
long manager_queryCarPrice (TM_ARGDECL manager_t *managerPtr, long carId)
 
long manager_queryRoom (TM_ARGDECL manager_t *managerPtr, long roomId)
 
long manager_queryRoomPrice (TM_ARGDECL manager_t *managerPtr, long roomId)
 
long manager_queryFlight (TM_ARGDECL manager_t *managerPtr, long flightId)
 
long manager_queryFlightPrice (TM_ARGDECL manager_t *managerPtr, long flightId)
 
long manager_queryCustomerBill (TM_ARGDECL manager_t *managerPtr, long customerId)
 
bool_t manager_reserveCar (TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
 
bool_t manager_reserveRoom (TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
 
bool_t manager_reserveFlight (TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
 
static TM_CALLABLE bool_t cancel (TM_ARGDECL MAP_T *tablePtr, MAP_T *customerTablePtr, long customerId, long id, reservation_type_t type)
 
bool_t manager_cancelCar (TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
 
bool_t manager_cancelRoom (TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
 
bool_t manager_cancelFlight (TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
 

Function Documentation

bool_t addReservation ( TM_ARGDECL MAP_T *  tablePtr,
long  id,
long  num,
long  price 
)
static

Here is the caller graph for this function:

static bool_t addReservation_seq ( MAP_T *  tablePtr,
long  id,
long  num,
long  price 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static TM_CALLABLE bool_t cancel ( TM_ARGDECL MAP_T *  tablePtr,
MAP_T *  customerTablePtr,
long  customerId,
long  id,
reservation_type_t  type 
)
static

Here is the caller graph for this function:

bool_t manager_addCar ( TM_ARGDECL manager_t managerPtr,
long  carId,
long  numCars,
long  price 
)

Here is the call graph for this function:

bool_t manager_addCar_seq ( manager_t managerPtr,
long  carId,
long  numCars,
long  price 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t manager_addCustomer ( TM_ARGDECL manager_t managerPtr,
long  customerId 
)
bool_t manager_addCustomer_seq ( manager_t managerPtr,
long  customerId 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t manager_addFlight ( TM_ARGDECL manager_t managerPtr,
long  flightId,
long  numSeat,
long  price 
)

Here is the call graph for this function:

bool_t manager_addFlight_seq ( manager_t managerPtr,
long  flightId,
long  numSeat,
long  price 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t manager_addRoom ( TM_ARGDECL manager_t managerPtr,
long  roomId,
long  numRoom,
long  price 
)

Here is the call graph for this function:

bool_t manager_addRoom_seq ( manager_t managerPtr,
long  roomId,
long  numRoom,
long  price 
)

Here is the call graph for this function:

Here is the caller graph for this function:

manager_t* manager_alloc ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t manager_cancelCar ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  carId 
)

Here is the call graph for this function:

bool_t manager_cancelFlight ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  flightId 
)

Here is the call graph for this function:

bool_t manager_cancelRoom ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  roomId 
)

Here is the call graph for this function:

bool_t manager_deleteCar ( TM_ARGDECL manager_t managerPtr,
long  carId,
long  numCar 
)

Here is the call graph for this function:

bool_t manager_deleteCustomer ( TM_ARGDECL manager_t managerPtr,
long  customerId 
)
bool_t manager_deleteFlight ( TM_ARGDECL manager_t managerPtr,
long  flightId 
)

Here is the call graph for this function:

bool_t manager_deleteRoom ( TM_ARGDECL manager_t managerPtr,
long  roomId,
long  numRoom 
)

Here is the call graph for this function:

void manager_free ( manager_t managerPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

long manager_queryCar ( TM_ARGDECL manager_t managerPtr,
long  carId 
)

Here is the call graph for this function:

long manager_queryCarPrice ( TM_ARGDECL manager_t managerPtr,
long  carId 
)

Here is the call graph for this function:

long manager_queryCustomerBill ( TM_ARGDECL manager_t managerPtr,
long  customerId 
)
long manager_queryFlight ( TM_ARGDECL manager_t managerPtr,
long  flightId 
)

Here is the call graph for this function:

long manager_queryFlightPrice ( TM_ARGDECL manager_t managerPtr,
long  flightId 
)

Here is the call graph for this function:

long manager_queryRoom ( TM_ARGDECL manager_t managerPtr,
long  roomId 
)

Here is the call graph for this function:

long manager_queryRoomPrice ( TM_ARGDECL manager_t managerPtr,
long  roomId 
)

Here is the call graph for this function:

bool_t manager_reserveCar ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  carId 
)

Here is the call graph for this function:

bool_t manager_reserveFlight ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  flightId 
)

Here is the call graph for this function:

bool_t manager_reserveRoom ( TM_ARGDECL manager_t managerPtr,
long  customerId,
long  roomId 
)

Here is the call graph for this function:

static long queryNumFree ( TM_ARGDECL MAP_T *  tablePtr,
long  id 
)
static

Here is the caller graph for this function:

static long queryPrice ( TM_ARGDECL MAP_T *  tablePtr,
long  id 
)
static

Here is the caller graph for this function:

static bool_t reserve ( TM_ARGDECL MAP_T *  tablePtr,
MAP_T *  customerTablePtr,
long  customerId,
long  id,
reservation_type_t  type 
)
static

Here is the caller graph for this function:

static MAP_T* tableAlloc ( )
static

Here is the caller graph for this function:

static void tableFree ( MAP_T *  mapPtr)
static

Here is the caller graph for this function: