1 /* 2 * OpNode.h 3 * 4 * Created on: 8 Apr 2013 5 * Author: s0965328 6 */ 7 8 #ifndef OPNODE_H_ 9 #define OPNODE_H_ 10 11 #include "Node.h" 12 #include "ActNode.h" 13 14 namespace AutoDiff { 15 16 using namespace std; 17 18 class OPNode: public ActNode { 19 public: 20 OPNode(OPCODE op,Node* left); 21 virtual ~OPNode(); 22 23 TYPE getType(); 24 25 OPCODE op; 26 Node* left; 27 double val; 28 29 30 31 private: 32 33 }; 34 35 } 36 37 #endif /* OPNODE_H_ */ 38