| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_ADJUSTPOINTINSTRUCTION_H | ||||
| 2 | #define CHRYSALIS_ADJUSTPOINTINSTRUCTION_H | ||||
| 3 | |||||
| 4 | #include <boost/serialization/export.hpp> | ||||
| 5 | |||||
| 6 | #include "BasePatternInstruction.h" | ||||
| 7 | #include "arguments/VectorArgument.h" | ||||
| 8 | #include "arguments/OptionalArgument.h" | ||||
| 9 | #include "arguments/PatternPointArgument.h" | ||||
| 10 | |||||
| 11 | /** @defgroup Instructions Instructions | ||||
| 12 | * @{ | ||||
| 13 | */ | ||||
| 14 | namespace Chrysalis { | ||||
| 15 | /** | ||||
| 16 | * @uml{note[top] Syntax samples: | ||||
| 17 | * B -10-> A <-15- C} | ||||
| 18 | */ | ||||
| 19 | class MovePointInstruction: public BasePatternInstruction { | ||||
| 20 | PROVIDE_SERIALIZATION_ACCESS(MovePointInstruction) | ||||
| 21 | public: | ||||
| 22 | explicit MovePointInstruction(ProjectSpace* space, args::patterns* patterns, const PatternPointArgument* point, | ||||
| 23 | const args::vector* vector1, const args::optional<args::vector>* vector2); | ||||
| 24 | ~MovePointInstruction() override; | ||||
| 25 | |||||
| 26 | void execute() override; | ||||
| 27 | private: | ||||
| 28 | const PatternPointArgument* point_; | ||||
| 29 | const args::vector* vector1_; | ||||
| 30 | const args::optional<args::vector>* vector2_; | ||||
| 31 | }; | ||||
| 32 | 120 | SERIALIZE_DERIVED_CONSTRUCTION(MovePointInstruction, BasePatternInstruction, space_, patterns_, point_, vector1_, vector2_) | |||
| 33 | } | ||||
| 34 | /**@}*/ | ||||
| 35 | |||||
| 36 | #endif //CHRYSALIS_ADJUSTPOINTINSTRUCTION_H | ||||
| 37 |