-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotDog.h
48 lines (36 loc) · 1.25 KB
/
HotDog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef HotDog_H
#define HotDog_H
#include "Condiments.h"
#include "Trace.h"
class HotDog
{
public:
/*--CONSTRUCTORS--------------------------------------------------------------------------------*/
HotDog(); // default constructor
HotDog(Condiments); // constructor that takes in condiments
HotDog(const HotDog &); // copy constructor
HotDog& operator = (const HotDog &); // = operator overload
~HotDog(); // destructor
/*--OVERLOADED OPERATORS-------------------------------------------------------------------------*/
bool operator== (const HotDog & in);
bool operator!= (const HotDog & in);
/*--NEXT/PREV-----------------------------------------------------------------------------------*/
HotDog* getNext();
HotDog* getPrev();
void setNext(HotDog*);
void setPrev(HotDog*);
/*--CONDIMENTS-------------------------------------------------------------------------------*/
void Add(Condiments _c);
void Minus(Condiments _c);
unsigned char getCondiment();
/*--PRINT-----------------------------------------------------------------------------------*/
void printMe();
private:
HotDog* next;
HotDog* prev;
unsigned char condiment;
unsigned char pad0;
unsigned char pad1;
unsigned char pad2;
};
#endif