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

Public Member Functions | |
| moItRandNextMove (moRandMove< M > &__rand_move, unsigned int __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 int | max_iter |
| Iteration maximum number. | |
| unsigned int | num_iter |
| Iteration current number. | |
This class is a move (moMove) generator with a bound for the maximum number of iterations.
Definition at line 47 of file moItRandNextMove.h.
| moItRandNextMove< M >::moItRandNextMove | ( | moRandMove< M > & | __rand_move, | |
| unsigned int | __max_iter | |||
| ) | [inline] |
The constructor.
Parameters only for initialising the attributes.
| __rand_move | the random move generator. | |
| __max_iter | the iteration maximum number. |
Definition at line 62 of file moItRandNextMove.h.
| bool moItRandNextMove< M >::operator() | ( | M & | __move, | |
| const EOT & | __sol | |||
| ) | [inline, virtual] |
Generation of a new move.
If the maximum number is not already reached, the current move is forgotten and remplaced by another one.
| __move | the current move. | |
| __sol | the current solution. |
Implements eoBF< M &, const M::EOType &, bool >.
Definition at line 77 of file moItRandNextMove.h.
References moItRandNextMove< M >::max_iter, moItRandNextMove< M >::num_iter, and moItRandNextMove< M >::rand_move.
1.5.2