00001 /** 00002 * Declaration of a binary operation. 00003 * @file BinaryOp.h 00004 * @date Fall 200 00005 * @author John Hart, Ed Bachta 00006 * @remarks Based on UnaryOp.h by Ed Bachta and BinaryOp by Bill Nagel 00007 */ 00008 00009 #ifndef __ASL_BINARYOP_H_ 00010 #define __ASL_BINARYOP_H_ 00011 00012 #include "Implicit/Implicit.h" 00013 00014 class BinaryOp : public Implicit 00015 { 00016 public: 00017 Implicit *m_f; ///< First operand. 00018 Implicit *m_g; ///< Second operand. 00019 00020 BinaryOp(); ///< Default constructor. 00021 BinaryOp(Implicit *f, Implicit *g); ///< Explicit constructor. 00022 00023 virtual int qlen(); 00024 virtual void _setq(double *q); 00025 virtual void getq(double *q); 00026 virtual void procq(gmVector3 x, double *q); 00027 00028 virtual void getqname(char **qn); 00029 virtual bool setChild(int index, Implicit* child); 00030 virtual Implicit* getChild(int index); 00031 00032 virtual int maxChildren() { return 2; }; 00033 virtual int numChildren() ; 00034 }; 00035 00036 #endif 00037
1.3.4