git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1981 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
585454f7b5
commit
5d9433896e
1 changed files with 112 additions and 104 deletions
|
|
@ -41,8 +41,7 @@
|
|||
* An ordered Neighborhood
|
||||
*/
|
||||
template<class Neighbor>
|
||||
class moOrderNeighborhood : public moIndexNeighborhood<Neighbor>
|
||||
{
|
||||
class moOrderNeighborhood: public moIndexNeighborhood<Neighbor> {
|
||||
public:
|
||||
|
||||
/**
|
||||
|
|
@ -56,7 +55,9 @@ public:
|
|||
* Constructor
|
||||
* @param _neighborhoodSize the size of the neighborhood
|
||||
*/
|
||||
moOrderNeighborhood(unsigned int _neighborhoodSize): moIndexNeighborhood<Neighbor>(_neighborhoodSize), currentIndex(0) {}
|
||||
moOrderNeighborhood(unsigned int _neighborhoodSize) :
|
||||
moIndexNeighborhood<Neighbor> (_neighborhoodSize), currentIndex(0) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if a neighbor exists
|
||||
|
|
@ -106,6 +107,13 @@ public:
|
|||
return currentIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter the position in the Neighborhood
|
||||
*/
|
||||
unsigned int setPosition(unsigned int _currentIndex) {
|
||||
currentIndex=_currentIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the class Name
|
||||
* @return the class name as a std::string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue