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

Go to the source code of this file.

Classes

struct  manager
 

Macros

#define MANAGER_ADD_CAR(mgr, id, num, price)   manager_addCar(TM_ARG mgr, id, num, price)
 
#define MANAGER_DELETE_CAR(mgr, id, num)   manager_deleteCar(TM_ARG mgr, id, num)
 
#define MANAGER_ADD_ROOM(mgr, id, num, price)   manager_addRoom(TM_ARG mgr, id, num, price)
 
#define MANAGER_DELETE_ROOM(mgr, id, num)   manager_deleteRoom(TM_ARG mgr, id, num)
 
#define MANAGER_ADD_FLIGHT(mgr, id, num, price)   manager_addFlight(TM_ARG mgr, id, num, price)
 
#define MANAGER_DELETE_FLIGHT(mgr, id)   manager_deleteFlight(TM_ARG mgr, id)
 
#define MANAGER_ADD_CUSTOMER(mgr, id)   manager_addCustomer(TM_ARG mgr, id)
 
#define MANAGER_DELETE_CUSTOMER(mgr, id)   manager_deleteCustomer(TM_ARG mgr, id)
 
#define MANAGER_QUERY_CAR(mgr, id)   manager_queryCar(TM_ARG mgr, id)
 
#define MANAGER_QUERY_CAR_PRICE(mgr, id)   manager_queryCarPrice(TM_ARG mgr, id)
 
#define MANAGER_QUERY_ROOM(mgr, id)   manager_queryRoom(TM_ARG mgr, id)
 
#define MANAGER_QUERY_ROOM_PRICE(mgr, id)   manager_queryRoomPrice(TM_ARG mgr, id)
 
#define MANAGER_QUERY_FLIGHT(mgr, id)   manager_queryFlight(TM_ARG mgr, id)
 
#define MANAGER_QUERY_FLIGHT_PRICE(mgr, id)   manager_queryFlightPrice(TM_ARG mgr, id)
 
#define MANAGER_QUERY_CUSTOMER_BILL(mgr, id)   manager_queryCustomerBill(TM_ARG mgr, id)
 
#define MANAGER_RESERVE_CAR(mgr, cust, id)   manager_reserveCar(TM_ARG mgr, cust, id)
 
#define MANAGER_RESERVE_ROOM(mgr, cust, id)   manager_reserveRoom(TM_ARG mgr, cust, id)
 
#define MANAGER_RESERVE_FLIGHT(mgr, cust, id)   manager_reserveFlight(TM_ARG mgr, cust, id)
 
#define MANAGER_CANCEL_CAR(mgr, cust, id)   manager_cancelCar(TM_ARG mgr, cust, id)
 
#define MANAGER_CANCEL_ROOM(mgr, cust, id)   manager_cancelRoom(TM_ARG mgr, cust, id)
 
#define MANAGER_CANCEL_FLIGHT(mgr, cust, id)   manager_cancelFlight(TM_ARG mgr, cust, id)
 

Typedefs

typedef struct manager manager_t
 

Functions

manager_tmanager_alloc ()
 
void manager_free (manager_t *managerPtr)
 
TM_CALLABLE bool_t manager_addCar (TM_ARGDECL manager_t *managerPtr, long carId, long numCar, long price)
 
bool_t manager_addCar_seq (manager_t *managerPtr, long carId, long numCar, long price)
 
TM_CALLABLE bool_t manager_deleteCar (TM_ARGDECL manager_t *managerPtr, long carId, long numCar)
 
TM_CALLABLE 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)
 
TM_CALLABLE bool_t manager_deleteRoom (TM_ARGDECL manager_t *managerPtr, long roomId, long numRoom)
 
TM_CALLABLE 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)
 
TM_CALLABLE bool_t manager_deleteFlight (TM_ARGDECL manager_t *managerPtr, long flightId)
 
TM_CALLABLE bool_t manager_addCustomer (TM_ARGDECL manager_t *managerPtr, long customerId)
 
bool_t manager_addCustomer_seq (manager_t *managerPtr, long customerId)
 
TM_CALLABLE bool_t manager_deleteCustomer (TM_ARGDECL manager_t *managerPtr, long customerId)
 
TM_CALLABLE long manager_queryCar (TM_ARGDECL manager_t *managerPtr, long carId)
 
TM_CALLABLE long manager_queryCarPrice (TM_ARGDECL manager_t *managerPtr, long carId)
 
TM_CALLABLE long manager_queryRoom (TM_ARGDECL manager_t *managerPtr, long roomId)
 
TM_CALLABLE long manager_queryRoomPrice (TM_ARGDECL manager_t *managerPtr, long roomId)
 
TM_CALLABLE long manager_queryFlight (TM_ARGDECL manager_t *managerPtr, long flightId)
 
TM_CALLABLE long manager_queryFlightPrice (TM_ARGDECL manager_t *managerPtr, long flightId)
 
TM_CALLABLE long manager_queryCustomerBill (TM_ARGDECL manager_t *managerPtr, long customerId)
 
TM_CALLABLE bool_t manager_reserveCar (TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
 
TM_CALLABLE bool_t manager_reserveRoom (TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
 
TM_CALLABLE bool_t manager_reserveFlight (TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
 
TM_CALLABLE bool_t manager_cancelCar (TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
 
TM_CALLABLE bool_t manager_cancelRoom (TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
 
TM_CALLABLE bool_t manager_cancelFlight (TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
 

Macro Definition Documentation

#define MANAGER_ADD_CAR (   mgr,
  id,
  num,
  price 
)    manager_addCar(TM_ARG mgr, id, num, price)
#define MANAGER_ADD_CUSTOMER (   mgr,
  id 
)    manager_addCustomer(TM_ARG mgr, id)
#define MANAGER_ADD_FLIGHT (   mgr,
  id,
  num,
  price 
)    manager_addFlight(TM_ARG mgr, id, num, price)
#define MANAGER_ADD_ROOM (   mgr,
  id,
  num,
  price 
)    manager_addRoom(TM_ARG mgr, id, num, price)
#define MANAGER_CANCEL_CAR (   mgr,
  cust,
  id 
)    manager_cancelCar(TM_ARG mgr, cust, id)
#define MANAGER_CANCEL_FLIGHT (   mgr,
  cust,
  id 
)    manager_cancelFlight(TM_ARG mgr, cust, id)
#define MANAGER_CANCEL_ROOM (   mgr,
  cust,
  id 
)    manager_cancelRoom(TM_ARG mgr, cust, id)
#define MANAGER_DELETE_CAR (   mgr,
  id,
  num 
)    manager_deleteCar(TM_ARG mgr, id, num)
#define MANAGER_DELETE_CUSTOMER (   mgr,
  id 
)    manager_deleteCustomer(TM_ARG mgr, id)
#define MANAGER_DELETE_FLIGHT (   mgr,
  id 
)    manager_deleteFlight(TM_ARG mgr, id)
#define MANAGER_DELETE_ROOM (   mgr,
  id,
  num 
)    manager_deleteRoom(TM_ARG mgr, id, num)
#define MANAGER_QUERY_CAR (   mgr,
  id 
)    manager_queryCar(TM_ARG mgr, id)
#define MANAGER_QUERY_CAR_PRICE (   mgr,
  id 
)    manager_queryCarPrice(TM_ARG mgr, id)
#define MANAGER_QUERY_CUSTOMER_BILL (   mgr,
  id 
)    manager_queryCustomerBill(TM_ARG mgr, id)
#define MANAGER_QUERY_FLIGHT (   mgr,
  id 
)    manager_queryFlight(TM_ARG mgr, id)
#define MANAGER_QUERY_FLIGHT_PRICE (   mgr,
  id 
)    manager_queryFlightPrice(TM_ARG mgr, id)
#define MANAGER_QUERY_ROOM (   mgr,
  id 
)    manager_queryRoom(TM_ARG mgr, id)
#define MANAGER_QUERY_ROOM_PRICE (   mgr,
  id 
)    manager_queryRoomPrice(TM_ARG mgr, id)
#define MANAGER_RESERVE_CAR (   mgr,
  cust,
  id 
)    manager_reserveCar(TM_ARG mgr, cust, id)
#define MANAGER_RESERVE_FLIGHT (   mgr,
  cust,
  id 
)    manager_reserveFlight(TM_ARG mgr, cust, id)
#define MANAGER_RESERVE_ROOM (   mgr,
  cust,
  id 
)    manager_reserveRoom(TM_ARG mgr, cust, id)

Typedef Documentation

typedef struct manager manager_t

Function Documentation

TM_CALLABLE bool_t manager_addCar ( TM_ARGDECL manager_t managerPtr,
long  carId,
long  numCar,
long  price 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

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

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

TM_CALLABLE long manager_queryCar ( TM_ARGDECL manager_t managerPtr,
long  carId 
)

Here is the call graph for this function:

TM_CALLABLE long manager_queryCarPrice ( TM_ARGDECL manager_t managerPtr,
long  carId 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

TM_CALLABLE long manager_queryFlightPrice ( TM_ARGDECL manager_t managerPtr,
long  flightId 
)

Here is the call graph for this function:

TM_CALLABLE long manager_queryRoom ( TM_ARGDECL manager_t managerPtr,
long  roomId 
)

Here is the call graph for this function:

TM_CALLABLE long manager_queryRoomPrice ( TM_ARGDECL manager_t managerPtr,
long  roomId 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function: