add className function, so this class is now concrete
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@494 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
fa4b2d1f72
commit
6c0e95bfb0
2 changed files with 19 additions and 1 deletions
|
|
@ -38,6 +38,15 @@ public:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the class name as a std::string
|
||||||
|
*/
|
||||||
|
virtual std::string className() const
|
||||||
|
{
|
||||||
|
return "moeoBitVector";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writing object
|
* Writing object
|
||||||
* @param _os output stream
|
* @param _os output stream
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,16 @@ public:
|
||||||
*/
|
*/
|
||||||
moeoRealVector(unsigned int _size = 0, double _value = 0.0) : moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double >(_size, _value)
|
moeoRealVector(unsigned int _size = 0, double _value = 0.0) : moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double >(_size, _value)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the class name as a std::string
|
||||||
|
*/
|
||||||
|
virtual std::string className() const
|
||||||
|
{
|
||||||
|
return "moeoRealVector";
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /*MOEOREALVECTOR_H_*/
|
#endif /*MOEOREALVECTOR_H_*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue