/* Just Two Curves packed in one object*/ #ifndef TWOCURVE_CPP #define TWOCURVE_CPP #include "Curve.cpp" using namespace std; class TwoCurve{ Curve c0; Curve c1; public: TwoCurve(){} void c0_add(Point p){ c0.push_back(p); } void c1_add(Point p){ c1.push_back(p); } Point c0_pop(){ c0.pop_back(); } Point c1_pop(){ c1.pop_back(); } Point c0_get(int i){ return c0.at(i); } Point c1_get(int i){ return c1.at(i); } int c0_getsize(){ return c0.size(); } int c1_getsize(){ return c1.size(); } }; #endif TWOCURVE_CPP