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

Arak::NullColoringMove Class Reference

#include <coloring_mcmc.hpp>

Inheritance diagram for Arak::NullColoringMove:

Inheritance graph
[legend]
Collaboration diagram for Arak::NullColoringMove:

Collaboration graph
[legend]
List of all members.

Detailed Description

A null move.

Definition at line 50 of file coloring_mcmc.hpp.

Public Member Functions

 NullColoringMove ()
void execute (Coloring &c)
 Updates the supplied coloring according to this move.

void undo (Coloring &c)
 Updates the supplied Coloring so that the effects of performing this move are undone.

 ~NullColoringMove ()

Static Public Attributes

const NullColoringMove instance
 A static instance of a null coloring move.


Constructor & Destructor Documentation

Arak::NullColoringMove::NullColoringMove  )  [inline]
 

Definition at line 54 of file coloring_mcmc.hpp.

Arak::NullColoringMove::~NullColoringMove  )  [inline]
 

Definition at line 57 of file coloring_mcmc.hpp.


Member Function Documentation

void Arak::NullColoringMove::execute Coloring c  )  [inline, 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 55 of file coloring_mcmc.hpp.

void Arak::NullColoringMove::undo Coloring c  )  [inline, 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 56 of file coloring_mcmc.hpp.


Member Data Documentation

const NullColoringMove NullColoringMove::instance [static]
 

A static instance of a null coloring move.

Definition at line 5 of file coloring_mcmc.cpp.


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