PPL Assignment
IRM2015006
Couple Class Reference

#include <couple.h>

Collaboration diagram for Couple:
Collaboration graph

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< Giftgifts
 
float happiness
 
Boyboy
 
Girlgirl
 

Detailed Description

Couple class

Definition at line 10 of file couple.h.

Constructor & Destructor Documentation

Couple::Couple ( Boy b,
Girl g 
)

Constructor

Definition at line 23 of file couple.cpp.

Here is the call graph for this function:

Member Function Documentation

void Couple::breakup ( )

Breakup this couple

Definition at line 40 of file couple.cpp.

Here is the call graph for this function:

float Couple::findCompatibility ( )

Find the compatibility of this couple

Definition at line 164 of file couple.cpp.

Here is the caller graph for this function:

float Couple::findHappiness ( )

Find the happiness of this couple

Definition at line 33 of file couple.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Couple::makeGiftBasket ( std::vector< Gift giftlist,
Logger logger 
)

Form the gift basket (vector) for this couple from given gift list

Definition at line 48 of file couple.cpp.

Here is the call graph for this function:

void Couple::makeGiftBasket2 ( std::vector< Gift giftlist,
Logger logger 
)

Form a gift basket such that it contains one gift of every type

Definition at line 101 of file couple.cpp.

Here is the call graph for this function:

Member Data Documentation

Boy* Couple::boy

This is the boy

Definition at line 16 of file couple.h.

std::vector<Gift> Couple::gifts

the vector of gifts for this couple

Definition at line 14 of file couple.h.

Girl* Couple::girl

This is the girl

Definition at line 17 of file couple.h.

float Couple::happiness

The happpiness of this couple

Definition at line 15 of file couple.h.


The documentation for this class was generated from the following files: