PPL Assignment
IRM2015006
couple.cpp File Reference
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <string>
#include "couple.h"
Include dependency graph for couple.cpp:

Go to the source code of this file.

Functions

bool compareOnHappiness (Couple c1, Couple c2)
 
bool compareOnCompatibility (Couple c1, Couple c2)
 
bool giftRemovalPred (Gift g)
 

Function Documentation

bool compareOnCompatibility ( Couple  c1,
Couple  c2 
)

Comparator to compare couples on basis of compatibility
For sorting in descending order

Definition at line 13 of file couple.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool compareOnHappiness ( Couple  c1,
Couple  c2 
)

Comparator to compare couples on basis of happiness
For sorting in descending order

Definition at line 8 of file couple.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool giftRemovalPred ( Gift  g)

Definition at line 18 of file couple.cpp.

Here is the caller graph for this function: