git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1981 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
boufaras 2010-11-02 10:41:11 +00:00
commit 5d9433896e

View file

@ -41,8 +41,7 @@
* An ordered Neighborhood * An ordered Neighborhood
*/ */
template<class Neighbor> template<class Neighbor>
class moOrderNeighborhood : public moIndexNeighborhood<Neighbor> class moOrderNeighborhood: public moIndexNeighborhood<Neighbor> {
{
public: public:
/** /**
@ -56,7 +55,9 @@ public:
* Constructor * Constructor
* @param _neighborhoodSize the size of the neighborhood * @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 * Test if a neighbor exists
@ -106,6 +107,13 @@ public:
return currentIndex; return currentIndex;
} }
/**
* Setter the position in the Neighborhood
*/
unsigned int setPosition(unsigned int _currentIndex) {
currentIndex=_currentIndex;
}
/** /**
* Return the class Name * Return the class Name
* @return the class name as a std::string * @return the class name as a std::string