1- // ConvexHull : Definition
2- #ifndef CONVEXHULLEXTRAS
3- #define CONVEXHULLEXTRAS
1+ // UpperHull : Definition
2+ #ifndef UPPERHULLEXTRAS
3+ #define UPPERHULLEXTRAS
44
55/* ==============================================================================
66 Includes
@@ -18,9 +18,9 @@ class emptyContext {};
1818==============================================================================*/
1919
2020template <class I >
21- class ConvexHullExtras : public StackAlgoExtras <emptyContext, Point2D, I> {
21+ class UpperHullExtras : public StackAlgoExtras <emptyContext, Point2D, I> {
2222public:
23- ConvexHullExtras (std::string filePath, bool usecompressed, bool useclassic)
23+ UpperHullExtras (std::string filePath, bool usecompressed, bool useclassic)
2424 : StackAlgoExtras<emptyContext, Point2D, I>(filePath, usecompressed,
2525 useclassic) {}
2626
@@ -57,7 +57,7 @@ class ConvexHullExtras : public StackAlgoExtras<emptyContext, Point2D, I> {
5757 * reportStack
5858==============================================================================*/
5959template <class I >
60- Point2D ConvexHullExtras <I>::readInput(std::vector<std::string> line) {
60+ Point2D UpperHullExtras <I>::readInput(std::vector<std::string> line) {
6161 double x = std::stof (line[0 ]);
6262 double y = std::stof (line[1 ]);
6363
@@ -69,7 +69,7 @@ Point2D ConvexHullExtras<I>::readInput(std::vector<std::string> line) {
6969}
7070
7171template <class I >
72- std::shared_ptr<emptyContext> ConvexHullExtras <I>::initStack() {
72+ std::shared_ptr<emptyContext> UpperHullExtras <I>::initStack() {
7373 // std::cout << "going to read two values " << std::endl;
7474
7575 // first, read and push two values
@@ -85,7 +85,7 @@ std::shared_ptr<emptyContext> ConvexHullExtras<I>::initStack() {
8585 return context;
8686}
8787
88- template <class I > bool ConvexHullExtras <I>::popCondition(Point2D last) {
88+ template <class I > bool UpperHullExtras <I>::popCondition(Point2D last) {
8989 Point2D minus1, minus2;
9090 std::cout << std::endl << last << " <<<< pop condition enter " << std::endl;
9191 StackAlgo<emptyContext, Point2D, I>::println ();
@@ -103,27 +103,27 @@ template <class I> bool ConvexHullExtras<I>::popCondition(Point2D last) {
103103
104104 return false ;
105105}
106- template <class I > void ConvexHullExtras <I>::prePop(Point2D data) {}
106+ template <class I > void UpperHullExtras <I>::prePop(Point2D data) {}
107107template <class I >
108- void ConvexHullExtras <I>::postPop(Point2D data,
109- Data<emptyContext, Point2D, I> elt) {
108+ void UpperHullExtras <I>::postPop(Point2D data,
109+ Data<emptyContext, Point2D, I> elt) {
110110 // std::cout << elt.getData() << " <<<< Pop!" << std::endl;
111111}
112- template <class I > void ConvexHullExtras <I>::noPop(Point2D data) {}
112+ template <class I > void UpperHullExtras <I>::noPop(Point2D data) {}
113113
114- template <class I > bool ConvexHullExtras <I>::pushCondition(Point2D data) {
114+ template <class I > bool UpperHullExtras <I>::pushCondition(Point2D data) {
115115 // std::cout << data << " <<<< push condition returning true " << std::endl;
116116 return true ;
117117}
118118template <class I >
119- void ConvexHullExtras <I>::prePush(Data<emptyContext, Point2D, I> elt) {}
119+ void UpperHullExtras <I>::prePush(Data<emptyContext, Point2D, I> elt) {}
120120template <class I >
121- void ConvexHullExtras <I>::postPush(Data<emptyContext, Point2D, I> elt) {
122- // std::cout << "ConvexHullStackAlgo ::pushAction Nothing to see here " <<
121+ void UpperHullExtras <I>::postPush(Data<emptyContext, Point2D, I> elt) {
122+ // std::cout << "UpperHullStackAlgo ::pushAction Nothing to see here " <<
123123 // elt.getData() << std::endl;
124124}
125- template <class I > void ConvexHullExtras <I>::noPush(Point2D data) {}
125+ template <class I > void UpperHullExtras <I>::noPush(Point2D data) {}
126126
127- template <class I > void ConvexHullExtras <I>::reportStack() {}
127+ template <class I > void UpperHullExtras <I>::reportStack() {}
128128
129- #endif // CONVEXHULLEXTRAS
129+ #endif // UPPERHULLEXTRAS
0 commit comments