Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef OPERATION_H
- #define OPERATION_H
- #include "Typedefs.h"
- class Operation
- {
- protected:
- virtual statevar Func()=0;
- statevar a,b;
- private:
- //for load function only
- datacol col; //datacol
- int index; //index
- public:
- Operation() : a(0), b(0), col(0), index(0){}
- statevar getStatevar()
- {
- return Func();
- }
- };
- class OperationAdd : public Operation
- {
- protected:
- virtual statevar Func()
- {
- return a+b;
- }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment