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