PPL Assignment
IRM2015006
|
#include <couple.h>
Public Member Functions | |
Couple (Boy *b, Girl *g) | |
float | findHappiness () |
float | findCompatibility () |
void | breakup () |
void | makeGiftBasket (std::vector< Gift > giftlist, Logger *logger) |
void | makeGiftBasket2 (std::vector< Gift > giftlist, Logger *logger) |
Public Attributes | |
std::vector< Gift > | gifts |
float | happiness |
Boy * | boy |
Girl * | girl |
void Couple::breakup | ( | ) |
Breakup this couple
Definition at line 40 of file couple.cpp.
float Couple::findCompatibility | ( | ) |
Find the compatibility of this couple
Definition at line 164 of file couple.cpp.
float Couple::findHappiness | ( | ) |
Find the happiness of this couple
Definition at line 33 of file couple.cpp.
Form the gift basket (vector) for this couple from given gift list
Definition at line 48 of file couple.cpp.
Form a gift basket such that it contains one gift of every type
Definition at line 101 of file couple.cpp.
std::vector<Gift> Couple::gifts |