PPL Assignment
IRM2015006
gift.h File Reference
#include <iostream>
Include dependency graph for gift.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gift
 

Enumerations

enum  GiftType { essential, luxury, utility }
 

Functions

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

Enumeration Type Documentation

enum GiftType

enum for the types of gifts

Enumerator
essential 
luxury 
utility 

Definition at line 7 of file gift.h.

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.