-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMod_Node.h
56 lines (42 loc) · 808 Bytes
/
Mod_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
// Honor Pledge:
//
// I pledge that I have neither given nor
// received any help on this assignment.
//
// blakbenn
#ifndef _MOD_NODE_H_
#define _MOD_NODE_H_
#include "Binary_Expr_Node.h"
/**
* @class Mod_Node
*
* Modulus node
*/
class Mod_Node : public Binary_Expr_Node
{
public:
/// Constructor
Mod_Node (void);
/// Destructor
virtual ~Mod_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 _MOD_NODE_H_