PPL Assignment
IRM2015006
q9.cpp File Reference
Include dependency graph for q9.cpp:

Go to the source code of this file.

Functions

std::vector< CouplemakeCouples (int k, std::vector< Boy * >, std::vector< Girl * >, Logger *logger)
 
void performGifting (int k, std::vector< Couple > *couples, std::vector< Gift > *giftlist, Logger *logger)
 
int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 16 of file q9.cpp.

Here is the call graph for this function:

std::vector<Couple> makeCouples ( int  k,
std::vector< Boy * >  boys,
std::vector< Girl * >  girls,
Logger logger 
)

Perform coupling of boys and girls based on getting the k best choices at a time

Definition at line 48 of file q9.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void performGifting ( int  k,
std::vector< Couple > *  couples,
std::vector< Gift > *  giftlist,
Logger logger 
)

Method to perform gifting to couple

Definition at line 87 of file q9.cpp.

Here is the caller graph for this function: