OPNode.h 386 B

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