Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Window.h
Go to the documentation of this file.
1 
31 #pragma once
32 
33 #ifdef OGDF_INCLUDE_CGAL
34 
36 
37 namespace ogdf {
38 namespace internal {
39 namespace gcm {
40 namespace geometry {
41 
42 template<typename kernel>
43 class Window_t : public LineSegment_t<kernel> {
44 private:
45  using LineSegment = LineSegment_t<kernel>;
46 
47 public:
48  unsigned int source_id;
49  unsigned int target_id;
50  using LineSegment::LineSegment; //inherit constructors
51 };
52 
53 template<typename kernel>
54 std::ostream& operator<<(std::ostream& os, const Window_t<kernel>& v) {
55  os << "vector[" << v.source() << ", " << v.target() << "]";
56  return os;
57 }
58 
59 } //namespace
60 }
61 }
62 }
63 
64 #endif
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::operator<<
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
Definition: Array.h:978
LineSegment.h