Public Member Functions | Protected Attributes
mets::invert_subsequence Class Reference

A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem. More...

#include <model.hh>

Inheritance diagram for mets::invert_subsequence:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void apply (mets::feasible_solution &s) const
 Virtual method that applies the move on a point.
void change (int from, int to)
clonableclone () const
gol_type evaluate (const mets::feasible_solution &s) const
 Virtual method that applies the move on a point.
size_t hash () const
 An hash function used by the tabu list (the hash value is used to insert the move in an hash set).
 invert_subsequence (int from, int to)
 A move that swaps from and to.
bool operator== (const mets::mana_move &o) const
 Comparison operator used to tell if this move is equal to a move in the tabu list.

Protected Attributes

int p1
 the first element to swap
int p2
 the second element to swap

Detailed Description

A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem.

See also:
mets::permutation_problem, mets::mana_move

Definition at line 441 of file model.hh.


Constructor & Destructor Documentation

mets::invert_subsequence::invert_subsequence ( int  from,
int  to 
) [inline]

A move that swaps from and to.

Definition at line 446 of file model.hh.


Member Function Documentation

void mets::invert_subsequence::apply ( mets::feasible_solution s) const [inline, virtual]

Virtual method that applies the move on a point.

Implements mets::move.

Definition at line 746 of file model.hh.

void mets::invert_subsequence::change ( int  from,
int  to 
) [inline]

Definition at line 473 of file model.hh.

clonable* mets::invert_subsequence::clone ( ) const [inline, virtual]

Implements mets::clonable.

Definition at line 459 of file model.hh.

Virtual method that applies the move on a point.

Implements mets::move.

Definition at line 763 of file model.hh.

size_t mets::invert_subsequence::hash ( ) const [inline, virtual]

An hash function used by the tabu list (the hash value is used to insert the move in an hash set).

Implements mets::hashable.

Definition at line 465 of file model.hh.

bool mets::invert_subsequence::operator== ( const mets::mana_move o) const [inline, virtual]

Comparison operator used to tell if this move is equal to a move in the tabu list.

Implements mets::mana_move.

Definition at line 782 of file model.hh.


Member Data Documentation

the first element to swap

Definition at line 477 of file model.hh.

the second element to swap

Definition at line 478 of file model.hh.


The documentation for this class was generated from the following file:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:54