| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #include "Pattern.h" | ||||
| 2 | |||||
| 3 | using namespace Chrysalis; | ||||
| 4 | |||||
| 5 | 2 | Pattern::Pattern(const std::string& name, PatternSpace* space) | |||
| 6 | 2 | : BaseNamedElement(name), space_(space) {} | |||
| 7 | |||||
| 8 | 2 | Pattern* Pattern::create(const std::string& name) { | |||
| 9 | 2 | return new Pattern(name, new PatternSpace(std::make_unique<NamedElementsContainer<Outline>>())); | |||
| 10 | } | ||||
| 11 | |||||
| 12 | 6 | Pattern::~Pattern() { | |||
| 13 | 6 | delete space_; | |||
| 14 | 6 | } | |||
| 15 | |||||
| 16 | 36 | PatternSpace* Pattern::getSpace() const { | |||
| 17 | 36 | return space_; | |||
| 18 | } | ||||
| 19 |