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:
parent
d7496cafff
commit
dd66b5e4bd
105 changed files with 3950 additions and 3924 deletions
|
|
@ -83,7 +83,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return name of the class
|
* @return name of the class
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moCounterMonitorSaver"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moCounterMonitorSaver";
|
||||||
|
}
|
||||||
|
|
||||||
private :
|
private :
|
||||||
/** interval and counter value */
|
/** interval and counter value */
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return name of the class
|
* @return name of the class
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moDistanceStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moDistanceStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** the distance */
|
/** the distance */
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the name of the class
|
* @return the name of the class
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moFitnessStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moFitnessStat";
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moMaxNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moMaxNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moMinNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moMinNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moNbInfNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moNbInfNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moNbSupNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moNbSupNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moNeutralDegreeNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moNeutralDegreeNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moSecondMomentNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moSecondMomentNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,9 @@ public :
|
||||||
/**
|
/**
|
||||||
* @return the class name
|
* @return the class name
|
||||||
*/
|
*/
|
||||||
virtual std::string className(void) const { return "moSizeNeighborStat"; }
|
virtual std::string className(void) const {
|
||||||
|
return "moSizeNeighborStat";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** moNeighborhoodStat */
|
/** moNeighborhoodStat */
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,9 @@ public:
|
||||||
* Return the class id.
|
* Return the class id.
|
||||||
* @return the class name as a std::string
|
* @return the class name as a std::string
|
||||||
*/
|
*/
|
||||||
virtual std::string className() const { return "moNeighbor"; }
|
virtual std::string className() const {
|
||||||
|
return "moNeighbor";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read object.
|
* Read object.
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,9 @@ public:
|
||||||
/** Return the class id.
|
/** Return the class id.
|
||||||
* @return the class name as a std::string
|
* @return the class name as a std::string
|
||||||
*/
|
*/
|
||||||
virtual std::string className() const { return "moMoveNeighbor"; }
|
virtual std::string className() const {
|
||||||
|
return "moMoveNeighbor";
|
||||||
|
}
|
||||||
|
|
||||||
void setMove(M* _move) {
|
void setMove(M* _move) {
|
||||||
move=_move;
|
move=_move;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,9 @@ public:
|
||||||
/** Return the class id.
|
/** Return the class id.
|
||||||
* @return the class name as a std::string
|
* @return the class name as a std::string
|
||||||
*/
|
*/
|
||||||
virtual std::string className() const { return "moMoveNeighborhood"; }
|
virtual std::string className() const {
|
||||||
|
return "moMoveNeighborhood";
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
moMoveInit<M>& _init;
|
moMoveInit<M>& _init;
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ int main(){
|
||||||
assert(test.getMax()==6);
|
assert(test.getMax()==6);
|
||||||
assert(test.getMean()==6.6);
|
assert(test.getMean()==6.6);
|
||||||
double sd=test.getSD();
|
double sd=test.getSD();
|
||||||
assert(test.getSD()>0.966 && test.getSD()<0.967);
|
assert(sd>0.966 && sd<0.967);
|
||||||
assert(test.getSize()==10);
|
assert(test.getSize()==10);
|
||||||
assert(test.getNbSup()==7);
|
assert(test.getNbSup()==7);
|
||||||
assert(test.getNbInf()==3);
|
assert(test.getNbInf()==3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue