Design Patterns
constraint_solver_memento.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_CONSTRAINT_SOLVER_MEMENTO_H_
7 #define OPERATIONAL_MEMENTO_CONSTRAINT_SOLVER_MEMENTO_H_
8 
9 #include "graphic.h"
10 
11 #include <map>
12 
13 #include "../iterator/list.h"
14 
15 namespace operational
16 {
17 namespace memento
18 {
20 {
21  public:
22  virtual ~ConstraintSolverMemento();
23 
24  private:
25  friend class ConstraintSolver;
28 
29  void AddConstraint(Graphic* start, Graphic* end);
30  void RemoveConstraint(Graphic* start, Graphic* end);
31 
32  std::map<Graphic*, iterator::List<Graphic*>*> constrains_;
33  std::map<Graphic*, structural::commons::Point<float>> transformations_;
34 };
35 }
36 }
37 
38 #endif
39 
Definition: application.cc:10
virtual ~ConstraintSolverMemento()
Definition: constraint_solver_memento.cc:20
Definition: graphic.h:15
Definition: constraint_solver.h:15
Definition: constraint_solver_memento.h:19