| 99 | //------------------------------------------------------------------------ |
| 100 | template <class T, unsigned S> |
| 101 | void vertex_sequence<T, S>::close(bool closed) |
| 102 | { |
| 103 | while (base_type::size() > 1) |
| 104 | { |
| 105 | if ((*this)[base_type::size() - 2]((*this)[base_type::size() - 1])) |
| 106 | break; |
| 107 | T t = (*this)[base_type::size() - 1]; |
| 108 | base_type::remove_last(); |
| 109 | modify_last(t); |
| 110 | } |
| 111 | |
| 112 | if (closed) |
| 113 | { |
| 114 | while (base_type::size() > 1) |
| 115 | { |
| 116 | if ((*this)[base_type::size() - 1]((*this)[0])) |
| 117 | break; |
| 118 | base_type::remove_last(); |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | //-------------------------------------------------------------vertex_dist |
| 124 | // Vertex (x, y) with the distance to the next one. The last vertex has |
no outgoing calls
no test coverage detected