biu::PivotMoveSet Class Reference
#include <PivotMoveSet.hh>
Inheritance diagram for biu::PivotMoveSet:
Detailed Description
This class handles pivot moves on LatticeProtein objects. The pivot moves are implemented as point mutations on the relative move string.
Definition at line 17 of file PivotMoveSet.hh.
Public Member Functions | |
virtual LatticeProtein * | applyMove (const LatticeProtein *const toChange, size_t moveIndex) |
virtual LatticeProtein * | applyMoveInPlace (LatticeProtein *toChange, size_t moveIndex) |
PivotMoveSet * | clone () |
virtual size_t | getMoveNumber (const LatticeProtein *const lp) const |
PivotMoveSet (const LatticeModel *lattice) | |
virtual LatticeProtein * | undoLastMove (LatticeProtein *toUndo) |
virtual | ~PivotMoveSet () |
Protected Attributes | |
LatticeProtein * | lastChangedObject |
size_t | lastOverwritePos |
Move | lastOverwrittenMove |
const LatticeModel * | lattice |
Constructor & Destructor Documentation
biu::PivotMoveSet::PivotMoveSet | ( | const LatticeModel * | lattice | ) |
Definition at line 5 of file PivotMoveSet.cc.
biu::PivotMoveSet::~PivotMoveSet | ( | ) | [virtual] |
Definition at line 12 of file PivotMoveSet.cc.
Member Function Documentation
LatticeProtein * biu::PivotMoveSet::applyMove | ( | const LatticeProtein *const | toChange, | |
size_t | moveIndex | |||
) | [virtual] |
Applies a pivot move to the given LatticeProtein on the specified position and returns a new LatticeProtein object as result.
- Parameters:
-
toChange the initial state moveIndex the move index (has to be less than the return value of getMoveNumber())
- Returns:
- a new LatticeProtein object neighbored to the todo object
Implements biu::LatticeMoveSet.
Definition at line 22 of file PivotMoveSet.cc.
LatticeProtein * biu::PivotMoveSet::applyMoveInPlace | ( | LatticeProtein * | toChange, | |
size_t | moveIndex | |||
) | [virtual] |
Applies a pivot move to the given LatticeProtein on the specified position INPLACE and returns the modified object as result.
- Parameters:
-
toChange the initial state to modify moveIndex the move index (has to be less than the return value of getMoveNumber())
- Returns:
- the modified LatticeProtein
Implements biu::LatticeMoveSet.
Definition at line 29 of file PivotMoveSet.cc.
PivotMoveSet * biu::PivotMoveSet::clone | ( | ) | [virtual] |
size_t biu::PivotMoveSet::getMoveNumber | ( | const LatticeProtein *const | lp | ) | const [virtual] |
Returns the number of available moves by this MoveSet.
Implements biu::LatticeMoveSet.
Definition at line 79 of file PivotMoveSet.cc.
LatticeProtein * biu::PivotMoveSet::undoLastMove | ( | LatticeProtein * | toUndo | ) | [virtual] |
Undo of last move performed on LatticeProtein toUndo. Undo is performed in place!
Implements biu::LatticeMoveSet.
Definition at line 88 of file PivotMoveSet.cc.
Field Documentation
LatticeProtein* biu::PivotMoveSet::lastChangedObject [protected] |
size_t biu::PivotMoveSet::lastOverwritePos [protected] |
Move biu::PivotMoveSet::lastOverwrittenMove [protected] |
const LatticeModel* biu::LatticeMoveSet::lattice [protected, inherited] |
the lattice model this move set bases on
Definition at line 24 of file LatticeMoveSet.hh.
The documentation for this class was generated from the following files:
- src/biu/PivotMoveSet.hh
- src/biu/PivotMoveSet.cc