home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 11 Learning / 01 Manslow / GPExample / CGPUnaryNode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-07  |  538 b   |  24 lines

  1. //GPExample
  2. //Copyright John Manslow
  3. //29/09/2001
  4.  
  5. #ifndef _GPUnaryNode_
  6. #define _GPUnaryNode_
  7.  
  8. #include "CGPNode.h"
  9.  
  10. class CGP;
  11.  
  12. //See inherited class for comments
  13. //Unary node is a parent class of all classes that that contain functions of one arguments
  14. class CGPUnaryNode : public CGPNode
  15. {
  16. public:
  17.     CGPUnaryNode();
  18.     ~CGPUnaryNode();
  19.     virtual CGPNode *pGetCopy(CGP*);
  20.     virtual unsigned long ulGetNumberOfNodesInSubtree(unsigned long);
  21.     virtual void GetnthNode(unsigned long&,unsigned long,CGPNode**&);
  22. };
  23.  
  24. #endif