| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_EDGEDARTINSTRUCTION_H | ||||
| 2 | #define CHRYSALIS_EDGEDARTINSTRUCTION_H | ||||
| 3 | |||||
| 4 | #include <boost/serialization/export.hpp> | ||||
| 5 | |||||
| 6 | #include "arguments/SegmentArgument.h" | ||||
| 7 | #include "arguments/OptionalArgument.h" | ||||
| 8 | #include "instructions/BasePatternInstruction.h" | ||||
| 9 | |||||
| 10 | /** @defgroup Instructions Instructions | ||||
| 11 | * @{ | ||||
| 12 | */ | ||||
| 13 | namespace Chrysalis { | ||||
| 14 | class EdgeDartInstruction: public BasePatternInstruction { | ||||
| 15 | PROVIDE_SERIALIZATION_ACCESS(EdgeDartInstruction) | ||||
| 16 | public: | ||||
| 17 | explicit EdgeDartInstruction(ProjectSpace* space, args::patterns* patterns, | ||||
| 18 | const args::segment* edge, const args::vector* dart, | ||||
| 19 | args::number&& leg1Intake, const args::optional<args::number>* leg2Intake); | ||||
| 20 | ~EdgeDartInstruction() override; | ||||
| 21 | |||||
| 22 | void execute() override; | ||||
| 23 | private: | ||||
| 24 | /// @uml{composition} | ||||
| 25 | const args::segment* edge_; | ||||
| 26 | /// @uml{composition} | ||||
| 27 | const args::vector* dart_; | ||||
| 28 | /// @uml{composition} | ||||
| 29 | args::number leg1Intake_; | ||||
| 30 | /// @uml{composition} | ||||
| 31 | const args::optional<args::number>* leg2Intake_; | ||||
| 32 | }; | ||||
| 33 | 20 | SERIALIZE_DERIVED_CONSTRUCTION(EdgeDartInstruction, BasePatternInstruction, space_, patterns_, edge_, dart_, leg1Intake_, leg2Intake_) | |||
| 34 | } | ||||
| 35 | /**@}*/ | ||||
| 36 | |||||
| 37 | #endif //CHRYSALIS_EDGEDARTINSTRUCTION_H | ||||
| 38 |