#include <moItRandNextMove.h>
Inheritance diagram for moItRandNextMove< M >:

Public Member Functions | |
| moItRandNextMove (moRandMove< M > &__rand_move, unsigned __max_iter) | |
| The constructor. | |
| bool | operator() (M &__move, const EOT &__sol) |
| Generation of a new move. | |
Private Types | |
| typedef M::EOType | EOT |
| Alias for the type. | |
Private Attributes | |
| moRandMove< M > & | rand_move |
| A move generator (generally randomly). | |
| unsigned | max_iter |
| Iteration maximum number. | |
| unsigned | num_iter |
| Iteration current number. | |
This class is a move (moMove) generator with a bound for the maximum number of iterations.
Definition at line 22 of file moItRandNextMove.h.
|
||||||||||||||||
|
The constructor. Parameters only for initialising the attributes.
Definition at line 37 of file moItRandNextMove.h. |
|
||||||||||||||||
|
Generation of a new move. If the maximum number is not already reached, the current move is forgotten and remplaced by another one.
Definition at line 52 of file moItRandNextMove.h. References moItRandNextMove< M >::max_iter, moItRandNextMove< M >::num_iter, and moItRandNextMove< M >::rand_move. |
1.4.6