-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSubtract_Node.h
57 lines (43 loc) · 849 Bytes
/
Subtract_Node.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
49
50
51
52
53
54
55
56
57
// Honor Pledge:
//
// I pledge that I have neither given nor
// received any help on this assignment.
//
// blakbenn
#ifndef _SUBTRACT_NODE_H_
#define _SUBTRACT_NODE_H_
#include "Binary_Expr_Node.h"
/**
* @class Subtract_Node
*
* Subtraction node
*/
class Subtract_Node : public Binary_Expr_Node
{
public:
/// Constructor
Subtract_Node (void);
/// Destructor
virtual ~Subtract_Node (void);
\
/**
* accept
*
* traverses the tree
* @param[in] &Visitor a reference to the visitor class
*
*/
virtual void accept (Visitor & visitor);
/**
* Priority
*
*
* @return priority an integer giving the priority of the operator
*/
virtual int Priority (void);
protected:
/// No protected members
private:
/// No private members
};
#endif // !defined _SUBTRACT_NODE_H_