PPL Assignment
IRM2015006
gift.cpp File Reference
#include "gift.h"
Include dependency graph for gift.cpp:

Go to the source code of this file.

Functions

bool compareOnValue (Gift g1, Gift g2)
 
bool compareOnPriceAsc (Gift g1, Gift g2)
 
bool compareOnPriceDesc (Gift g1, Gift g2)
 

Function Documentation

bool compareOnPriceAsc ( Gift  g1,
Gift  g2 
)

Comparator to compare Gifts on basis of their price
For sorting in ascending order

Definition at line 8 of file gift.cpp.

Here is the caller graph for this function:

bool compareOnPriceDesc ( Gift  g1,
Gift  g2 
)

Comparator to compare Gifts on basis of their price
For sorting in descending order

Definition at line 13 of file gift.cpp.

Here is the caller graph for this function:

bool compareOnValue ( Gift  g1,
Gift  g2 
)

Comparator to compare Gifts on basis of their value
For sorting in descending order

Definition at line 3 of file gift.cpp.