Darwin Neuroevolution Framework
Public Member Functions | List of all members
core::GenericStringify< T > Class Template Reference

Use iostream I/O operators for the argument type. More...

#include <stringify.h>

Inheritance diagram for core::GenericStringify< T >:
core::Stringify< T >

Public Member Functions

string toString (const T &value) const override
 Value to string conversion.
 
fromString (const string &str) const override
 String to value conversion.
 
vector< string > knownValues () const override
 The list of known values for type T, if available (for example enumerations)
 

Detailed Description

template<class T>
class core::GenericStringify< T >

Use iostream I/O operators for the argument type.

Note
So one way to "stringify-enable" new types is to just define these operators

The documentation for this class was generated from the following file: