| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_CURVEINSTRUCTION_H | ||||
| 2 | #define CHRYSALIS_CURVEINSTRUCTION_H | ||||
| 3 | |||||
| 4 | #include "CompositiveContainer.h" | ||||
| 5 | #include "arguments/VectorArgument.h" | ||||
| 6 | #include "arguments/PatternPointArgument.h" | ||||
| 7 | #include "instructions/BasePatternInstruction.h" | ||||
| 8 | |||||
| 9 | /** @defgroup Instructions Instructions | ||||
| 10 | * @{ | ||||
| 11 | */ | ||||
| 12 | namespace Chrysalis { | ||||
| 13 | class CurveInstruction: public BasePatternInstruction { | ||||
| 14 | PROVIDE_SERIALIZATION_ACCESS(CurveInstruction) | ||||
| 15 | public: | ||||
| 16 | explicit CurveInstruction(ProjectSpace* space, args::patterns* patterns, | ||||
| 17 | const args::vector* from, const args::vector* to, | ||||
| 18 | const args::container<PatternPointArgument>* points); | ||||
| 19 | ~CurveInstruction() override; | ||||
| 20 | |||||
| 21 | void execute() override; | ||||
| 22 | private: | ||||
| 23 | /// @uml{composition} | ||||
| 24 | const args::vector* from_; | ||||
| 25 | /// @uml{composition} | ||||
| 26 | const args::vector* to_; | ||||
| 27 | /// @uml{composition} | ||||
| 28 | const args::container<PatternPointArgument>* points_; | ||||
| 29 | }; | ||||
| 30 | 40 | SERIALIZE_DERIVED_CONSTRUCTION(CurveInstruction, BasePatternInstruction, space_, patterns_, from_, to_, points_); | |||
| 31 | } | ||||
| 32 | /**@}*/ | ||||
| 33 | |||||
| 34 | #endif //CHRYSALIS_CURVEINSTRUCTION_H | ||||
| 35 |