forked from codysauermann/GeometricDataStructures2D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLine2D.h
More file actions
27 lines (23 loc) · 661 Bytes
/
Copy pathLine2D.h
File metadata and controls
27 lines (23 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LINE2D_H
#define LINE2D_H
#include "vector"
#include "HalfSegment2D.h"
#include "Segment2D.h"
#include <memory>
using namespace std;
class Line2D {
private:
//vector to hold half segment data
class Impl;
unique_ptr<Impl> pimpl;
public:
Line2D(); //empty constructor
Line2D(std::vector<Segment2D> &inputLineSegments); //base constructor
Line2D(const Line2D &sourceLine2D); //copy constructor
Line2D(Line2D &&sourceLine2D); //move constructor
~Line2D(); //Destructor
typedef std::vector<HalfSegment2D>::iterator iterator;
iterator begin();
iterator end();
};
#endif //LINE2D_H