Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Arak::CN94Proposal::MoveInteriorVertex Class Reference

#include <cn94.hpp>

Inheritance diagram for Arak::CN94Proposal::MoveInteriorVertex:

Inheritance graph
[legend]
Collaboration diagram for Arak::CN94Proposal::MoveInteriorVertex:

Collaboration graph
[legend]
List of all members.

Detailed Description

Changes the location of an interior vertex.

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


Constructor & Destructor Documentation

Arak::CN94Proposal::MoveInteriorVertex::MoveInteriorVertex  )  [inline]
 

Definition at line 275 of file cn94.hpp.


Member Function Documentation

void CN94Proposal::MoveInteriorVertex::execute Coloring c  )  [virtual]
 

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.

Parameters:
c a coloring to be updated

Implements Arak::ColoringMove.

Definition at line 180 of file cn94.cpp.

References Arak::Coloring::moveIntVertex(), newLoc, and vertex.

void CN94Proposal::MoveInteriorVertex::reset Coloring::VertexHandle  vertex,
const Point point
 

Resets this move.

Parameters:
vertex the interior vertex to move
point the new location

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().

void CN94Proposal::MoveInteriorVertex::undo Coloring c  )  [virtual]
 

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.

Parameters:
c a coloring to be updated

Implements Arak::ColoringMove.

Definition at line 184 of file cn94.cpp.

References Arak::Coloring::moveIntVertex(), oldLoc, and vertex.


Friends And Related Function Documentation

friend class CN94Proposal [friend]
 

Definition at line 254 of file cn94.hpp.


Member Data Documentation

Point Arak::CN94Proposal::MoveInteriorVertex::newLoc [protected]
 

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().

Point Arak::CN94Proposal::MoveInteriorVertex::oldLoc [protected]
 

The current location of the vertex to be moved.

Definition at line 266 of file cn94.hpp.

Referenced by reset(), and undo().

Coloring::VertexHandle Arak::CN94Proposal::MoveInteriorVertex::vertex [protected]
 

The vertex to be moved.

Definition at line 261 of file cn94.hpp.

Referenced by execute(), Arak::ModifiedCN94Proposal::ll(), Arak::ModifiedCN94Proposal::rll(), and undo().


The documentation for this class was generated from the following files:
Generated on Wed May 25 14:40:39 2005 for Arak by doxygen 1.3.6