| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #include "arguments/SegmentArgument.h" | ||||
| 2 | |||||
| 3 | using namespace Chrysalis; | ||||
| 4 | |||||
| 5 | 69 | SegmentArgument::SegmentArgument(const args::point* origin, const args::point* destination) | |||
| 6 | 69 | : VectorArgument(origin, destination), destination_(destination) {} | |||
| 7 | |||||
| 8 | 276 | SegmentArgument::~SegmentArgument() { | |||
| 9 | 138 | delete destination_; | |||
| 10 | 276 | } | |||
| 11 | |||||
| 12 | 51 | const args::point* SegmentArgument::destination() const { | |||
| 13 | 51 | return destination_; | |||
| 14 | } | ||||
| 15 | |||||
| 16 | 30 | SegmentArgument::operator CG::Segment() const { | |||
| 17 | 30 | return CG::Segment(*origin(), *destination()); | |||
| 18 | } | ||||
| 19 |