better eoString
This commit is contained in:
parent
e17eb77e39
commit
b354bd51f8
1 changed files with 29 additions and 17 deletions
|
|
@ -44,23 +44,35 @@ class eoString: public EO<fitnessT>, public std::string
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef char Type;
|
typedef char Type;
|
||||||
|
typedef char AtomType;
|
||||||
|
typedef std::string ContainerType;
|
||||||
|
|
||||||
/// Canonical part of the objects: several ctors, copy ctor, dtor and assignment operator
|
/// Canonical part of the objects: several ctors, copy ctor, dtor and assignment operator
|
||||||
//@{
|
//@{
|
||||||
/// ctor
|
/// ctor
|
||||||
eoString( const std::string& _str ="" )
|
eoString( const std::string& _str ="" )
|
||||||
: std::string( _str ) {};
|
: std::string( _str ) {};
|
||||||
|
|
||||||
/** @name Methods from eoObject
|
/// printing...
|
||||||
readFrom and printOn are directly inherited from eo1d
|
virtual void printOn(std::ostream& os) const
|
||||||
*/
|
{
|
||||||
//@{
|
EO<fitnessT>::printOn(os);
|
||||||
/** Inherited from eoObject
|
os << ' ';
|
||||||
@see eoObject
|
|
||||||
*/
|
os << size() << ' ' << substr() << endl;
|
||||||
virtual std::string className() const {return "eoString";};
|
|
||||||
//@}
|
}
|
||||||
|
|
||||||
|
/** @name Methods from eoObject
|
||||||
|
readFrom and printOn are directly inherited from eo1d
|
||||||
|
*/
|
||||||
|
//@{
|
||||||
|
/** Inherited from eoObject
|
||||||
|
@see eoObject
|
||||||
|
*/
|
||||||
|
virtual std::string className() const {return "eoString";};
|
||||||
|
//@}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Reference in a new issue