| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_FREEPOINTINSTRUCTION_H | ||||
| 2 | #define CHRYSALIS_FREEPOINTINSTRUCTION_H | ||||
| 3 | |||||
| 4 | #include "arguments/Argument.h" | ||||
| 5 | #include "instructions/BasePatternInstruction.h" | ||||
| 6 | |||||
| 7 | /** @defgroup Instructions Instructions | ||||
| 8 | * @{ | ||||
| 9 | */ | ||||
| 10 | namespace Chrysalis { | ||||
| 11 | /** | ||||
| 12 | * @uml{note[top] Syntax samples: | ||||
| 13 | * A (1, 1) | ||||
| 14 | * "A 1" (1.0, 2) | ||||
| 15 | * A (1 * 2 + 3, param("Circumference of something"))} | ||||
| 16 | */ | ||||
| 17 | class FreePointInstruction: public BasePatternInstruction { | ||||
| 18 | PROVIDE_SERIALIZATION_ACCESS(FreePointInstruction) | ||||
| 19 | public: | ||||
| 20 | explicit FreePointInstruction(ProjectSpace* space, args::patterns* patterns, | ||||
| 21 | args::name&& pointName, args::number&& x, args::number&& y); | ||||
| 22 | void execute() override; | ||||
| 23 | private: | ||||
| 24 | args::name pointName_; | ||||
| 25 | args::number x_; | ||||
| 26 | args::number y_; | ||||
| 27 | }; | ||||
| 28 | 20 | SERIALIZE_DERIVED_CONSTRUCTION(FreePointInstruction, BasePatternInstruction, space_, patterns_, pointName_, x_, y_) | |||
| 29 | } | ||||
| 30 | /**@}*/ | ||||
| 31 | |||||
| 32 | #endif //CHRYSALIS_FREEPOINTINSTRUCTION_H | ||||
| 33 |