| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#ifndef CHRYSALIS_OUTLINE_H |
| 2 |
|
|
|
|
#define CHRYSALIS_OUTLINE_H |
| 3 |
|
|
|
|
|
| 4 |
|
|
|
|
#include <vector> |
| 5 |
|
|
|
|
|
| 6 |
|
|
|
|
#include "Point.h" |
| 7 |
|
|
|
|
#include "NamedElementsContainer.h" |
| 8 |
|
|
|
|
|
| 9 |
|
|
|
|
namespace Chrysalis { |
| 10 |
|
|
|
|
class Outline: public BaseNamedElement { |
| 11 |
|
|
5/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
|
16 |
SERIALIZE_DERIVED_FROM(BaseNamedElement) |
| 12 |
|
|
7/7
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
|
4 |
PROVIDE_DEFAULT_SERIALIZATION_ACCESS(Outline) |
| 13 |
|
|
|
|
public: |
| 14 |
|
|
|
|
explicit Outline(const std::string& name); |
| 15 |
|
|
|
|
|
| 16 |
|
|
|
|
void add(const Point* point); |
| 17 |
|
|
|
|
[[nodiscard]] const std::vector<const Point*>& points() const; |
| 18 |
|
|
|
|
private: |
| 19 |
|
|
|
|
std::vector<const Point*> points_; |
| 20 |
|
|
|
|
}; |
| 21 |
|
|
|
|
using OutlineContainer = std::unique_ptr<NamedElementsContainer<Outline>>; |
| 22 |
|
|
|
|
} |
| 23 |
|
|
|
|
|
| 24 |
|
|
|
|
#endif //CHRYSALIS_OUTLINE_H |
| 25 |
|
|
|
|
|