| 78 | // typedef std::pair<vtkIdType, vtkIdType> Edge; |
| 79 | |
| 80 | struct Edge : public std::pair<vtkIdType, vtkIdType> |
| 81 | { |
| 82 | public: |
| 83 | Edge() = default; |
| 84 | Edge(vtkIdType a, vtkIdType b) |
| 85 | : std::pair<vtkIdType, vtkIdType>(a, b) |
| 86 | { |
| 87 | } |
| 88 | Edge(vtkCell* edge) |
| 89 | : std::pair<vtkIdType, vtkIdType>(edge->GetPointId(0), edge->GetPointId(1)) |
| 90 | { |
| 91 | } |
| 92 | friend ostream& operator<<(ostream& stream, const Edge& e) |
| 93 | { |
| 94 | stream << e.first << " - " << e.second; |
| 95 | return stream; |
| 96 | } |
| 97 | }; |
| 98 | |
| 99 | struct hash_fn |
| 100 | { |
no outgoing calls
no test coverage detected