| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#ifndef CHRYSALIS_ADDPOINTINSTRUCTION_H |
| 2 |
|
|
|
|
#define CHRYSALIS_ADDPOINTINSTRUCTION_H |
| 3 |
|
|
|
|
|
| 4 |
|
|
|
|
#include <boost/serialization/export.hpp> |
| 5 |
|
|
|
|
|
| 6 |
|
|
|
|
#include "arguments/VectorArgument.h" |
| 7 |
|
|
|
|
#include "arguments/OptionalArgument.h" |
| 8 |
|
|
|
|
#include "arguments/PatternPointArgument.h" |
| 9 |
|
|
|
|
#include "arguments/PatternsContainerArgument.h" |
| 10 |
|
|
|
|
#include "instructions/BasePatternInstruction.h" |
| 11 |
|
|
|
|
|
| 12 |
|
|
|
|
/** @defgroup Instructions Instructions |
| 13 |
|
|
|
|
* @{ |
| 14 |
|
|
|
|
*/ |
| 15 |
|
|
|
|
namespace Chrysalis { |
| 16 |
|
|
|
|
/** |
| 17 |
|
|
|
|
* @uml{note[top] Syntax samples: |
| 18 |
|
|
|
|
* A -> B 45 10 |
| 19 |
|
|
|
|
* "A 1" ("Back") -> "B 2" 1 / 2 * 3 param("Short alias") |
| 20 |
|
|
|
|
* A -> B (1 * 2 * 3 * 4) (1 / 2 / param("Circumference of something")) |
| 21 |
|
|
|
|
* } |
| 22 |
|
|
|
|
*/ |
| 23 |
|
|
|
|
class RelativePointInstruction: public BasePatternInstruction { |
| 24 |
|
|
|
|
PROVIDE_SERIALIZATION_ACCESS(RelativePointInstruction) |
| 25 |
|
|
|
|
public: |
| 26 |
|
|
|
|
explicit RelativePointInstruction(ProjectSpace* space, args::patterns* selectedPatterns, |
| 27 |
|
|
|
|
args::name&& name, const args::vector* vector); |
| 28 |
|
|
|
|
explicit RelativePointInstruction(ProjectSpace* space, args::patterns* selectedPatterns, |
| 29 |
|
|
|
|
args::name&& name, const args::vector* vector, |
| 30 |
|
|
|
|
const args::optional<args::line>* line); |
| 31 |
|
|
|
|
~RelativePointInstruction() override; |
| 32 |
|
|
|
|
|
| 33 |
|
|
|
|
void execute() override; |
| 34 |
|
|
|
|
private: |
| 35 |
|
|
|
|
args::name name_; |
| 36 |
|
|
|
|
const args::vector* vector_; |
| 37 |
|
|
|
|
const args::optional<args::line>* line_; |
| 38 |
|
|
|
|
}; |
| 39 |
6/14
✓ Branch 7 taken 94 times.
✗ Branch 8 not taken.
✓ Branch 11 taken 94 times.
✗ Branch 12 not taken.
✓ Branch 15 taken 94 times.
✗ Branch 16 not taken.
✓ Branch 19 taken 94 times.
✗ Branch 20 not taken.
✓ Branch 23 taken 94 times.
✗ Branch 24 not taken.
✓ Branch 38 taken 94 times.
✗ Branch 39 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
|
|
39/41
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
✓ Call 14 invoked.
✓ Call 15 invoked.
✓ Call 16 invoked.
✓ Call 17 invoked.
✓ Call 18 invoked.
✓ Call 19 invoked.
✓ Call 20 invoked.
✓ Call 21 invoked.
✓ Call 22 invoked.
✓ Call 23 invoked.
✓ Call 24 invoked.
✓ Call 25 invoked.
✓ Call 26 invoked.
✓ Call 27 invoked.
✓ Call 28 invoked.
✓ Call 29 invoked.
✓ Call 30 invoked.
✓ Call 31 invoked.
✓ Call 32 invoked.
✓ Call 33 invoked.
✓ Call 34 invoked.
✓ Call 35 invoked.
✓ Call 36 invoked.
✓ Call 37 invoked.
✓ Call 40 invoked.
✗ Call 43 not invoked.
✗ Call 44 not invoked.
|
940 |
SERIALIZE_DERIVED_CONSTRUCTION(RelativePointInstruction, BasePatternInstruction, space_, patterns_, name_, vector_, line_) |
| 40 |
|
|
|
|
} |
| 41 |
|
|
|
|
/**@}*/ |
| 42 |
|
|
|
|
|
| 43 |
|
|
|
|
#endif //CHRYSALIS_ADDPOINTINSTRUCTION_H |
| 44 |
|
|
|
|
|