#include <cn94.hpp>
Inheritance diagram for Arak::CN94Proposal::MoveInteriorVertex:
Definition at line 252 of file cn94.hpp.
Public Member Functions | |
MoveInteriorVertex () | |
void | reset (Coloring::VertexHandle vertex, const Point &point) |
Resets this move. | |
virtual void | execute (Coloring &c) |
Updates the supplied coloring according to this move. | |
virtual void | undo (Coloring &c) |
Updates the supplied Coloring so that the effects of performing this move are undone. | |
Protected Attributes | |
Coloring::VertexHandle | vertex |
The vertex to be moved. | |
Point | oldLoc |
The current location of the vertex to be moved. | |
Point | newLoc |
The new location of the vertex to be moved. | |
Friends | |
class | CN94Proposal |
|
|
|
Updates the supplied coloring according to this move. It is an error to call this method if the move is not valid for the supplied coloring.
Implements Arak::ColoringMove. Definition at line 180 of file cn94.cpp. References Arak::Coloring::moveIntVertex(), newLoc, and vertex. |
|
Resets this move.
Definition at line 173 of file cn94.cpp. References newLoc, oldLoc, Arak::Geometry::Point, and Arak::Coloring::VertexHandle. Referenced by Arak::ModifiedCN94Proposal::SlideInteriorVertex::reset(), and Arak::CN94Proposal::sampleMoveInteriorVertex(). |
|
Updates the supplied Coloring so that the effects of performing this move are undone. The semantics of this method ensure that applying execute(Coloring&) and then undo(Coloring&) to the same coloring leaves the coloring invariant. It is an error to call this method if this undo is not valid for the supplied coloring.
Implements Arak::ColoringMove. Definition at line 184 of file cn94.cpp. References Arak::Coloring::moveIntVertex(), oldLoc, and vertex. |
|
|
|
The new location of the vertex to be moved.
Definition at line 271 of file cn94.hpp. Referenced by execute(), reset(), and Arak::ModifiedCN94Proposal::rll(). |
|
The current location of the vertex to be moved.
|
|
The vertex to be moved.
Definition at line 261 of file cn94.hpp. Referenced by execute(), Arak::ModifiedCN94Proposal::ll(), Arak::ModifiedCN94Proposal::rll(), and undo(). |