passage du code dans astyle

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1713 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-03-24 10:25:33 +00:00
commit dd66b5e4bd
105 changed files with 3950 additions and 3924 deletions

View file

@ -65,7 +65,7 @@ public:
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moComparator";
return "moComparator";
}
};

View file

@ -57,7 +57,7 @@ public:
* @return true if the neighbor2 is better than neighbor1
*/
virtual bool operator()(const Neighbor& _neighbor1, const Neighbor& _neighbor2) {
return (_neighbor1.fitness() < _neighbor2.fitness());
return (_neighbor1.fitness() < _neighbor2.fitness());
}
/**
@ -67,7 +67,7 @@ public:
* @return true if the neighbor2 is equal to neighbor1
*/
virtual bool equals(const Neighbor& _neighbor1, const Neighbor& _neighbor2) {
return (_neighbor1.fitness() == _neighbor2.fitness());
return (_neighbor1.fitness() == _neighbor2.fitness());
}
/**
@ -75,7 +75,7 @@ public:
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moNeighborComparator";
return "moNeighborComparator";
}
};

View file

@ -49,7 +49,7 @@ template< class Neighbor >
class moSolNeighborComparator : public moComparator<typename Neighbor::EOT, Neighbor>
{
public:
typedef typename Neighbor::EOT EOT ;
typedef typename Neighbor::EOT EOT ;
/**
* Compare two neighbors
@ -58,7 +58,7 @@ public:
* @return true if the neighbor is better than sol
*/
virtual bool operator()(const EOT& _sol, const Neighbor& _neighbor) {
return (_sol.fitness() < _neighbor.fitness());
return (_sol.fitness() < _neighbor.fitness());
}
/**
@ -68,7 +68,7 @@ public:
* @return true if the neighbor is equal to the solution
*/
virtual bool equals(const EOT& _sol, const Neighbor& _neighbor) {
return (_sol.fitness() == _neighbor.fitness());
return (_sol.fitness() == _neighbor.fitness());
}
/**
@ -76,7 +76,7 @@ public:
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moSolNeighborComparator";
return "moSolNeighborComparator";
}
};