| 239 | Contour::~Contour() { delete_contour_lines(); } |
| 240 | |
| 241 | void Contour::delete_contour_lines() { |
| 242 | for (iterator line_it = begin(); line_it != end(); ++line_it) { |
| 243 | delete *line_it; |
| 244 | *line_it = 0; |
| 245 | } |
| 246 | std::vector<ContourLine *>::clear(); |
| 247 | } |
| 248 | |
| 249 | void Contour::write() const { |
| 250 | std::cout << "Contour of " << size() << " lines." << std::endl; |
no test coverage detected