Design Patterns
Main Page
Namespaces
Classes
Files
File List
move_command.h
Go to the documentation of this file.
1
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3
//
4
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5
6
#ifndef OPERATIONAL_MEMENTO_MOVE_COMMAND_H_
7
#define OPERATIONAL_MEMENTO_MOVE_COMMAND_H_
8
9
#include "
constraint_solver_interface.h
"
10
11
namespace
operational
12
{
13
namespace
memento
14
{
15
class
MoveCommand
16
{
17
public
:
18
MoveCommand
(
ConstraintSolverInterface
* solver,
Graphic
* target,
const
structural::commons::Point<float>
& delta);
19
void
Execute
();
20
void
Unexecute
();
21
22
private
:
23
ConstraintSolverInterface
* solver_;
24
ConstraintSolverMemento
* state_;
25
structural::commons::Point<float>
delta_;
26
Graphic
* target_;
27
};
28
}
29
}
30
31
#endif
32
constraint_solver_interface.h
operational
Definition:
application.cc:10
operational::memento::MoveCommand::Execute
void Execute()
Definition:
move_command.cc:14
operational::memento::Graphic
Definition:
graphic.h:15
operational::memento::MoveCommand::Unexecute
void Unexecute()
Definition:
move_command.cc:21
operational::memento::MoveCommand
Definition:
move_command.h:15
operational::memento::MoveCommand::MoveCommand
MoveCommand(ConstraintSolverInterface *solver, Graphic *target, const structural::commons::Point< float > &delta)
Definition:
move_command.cc:12
structural::commons::Point< float >
operational::memento::ConstraintSolverInterface
Definition:
constraint_solver_interface.h:16
operational::memento::ConstraintSolverMemento
Definition:
constraint_solver_memento.h:19
src
operational
src
memento
move_command.h
Generated by
1.8.10