|
Darwin Neuroevolution Framework
|
Generic utilities. More...
Classes | |
| class | ArrayView |
| A 2d array slice (zero-based index, known size) More... | |
| class | Exception |
| The base for exception types in the Darwin framework. More... | |
| class | GenericStringify |
| Use iostream I/O operators for the argument type. More... | |
| class | ImplementationsSet |
| A set of instances implementing common interface (primarily intended to support registering named factory objects) More... | |
| struct | Matrix |
| A dynamically sized 2D matrix. More... | |
| class | ModuleFactory |
| Root of the polymorphic factories. More... | |
| class | NonCopyable |
| Classes derived from this are not copyable or movable. More... | |
| class | Property |
| Reflection interface to a property in a PropertySet. More... | |
| class | PropertySet |
| The foundation for data structures supporting runtime reflection. More... | |
| class | PropertySetVariant |
| A variant type (tagged-union) with PropertySet fields. More... | |
| class | PubSub |
| A type-safe, non-buffered & synchronous publisher-subscriber channel. More... | |
| class | Runtime |
| Interface to the Darwin runtime environment. More... | |
| class | Stringify |
| Interface for converting values to/from strings (the default implementation uses iostream I/O operators) More... | |
| class | StringifyKnownValues |
| Handles types with a fixed, known set of values (enumerations for example) More... | |
| class | StringifyStrings |
| Maps strings unmodified (going through I/O operators doesn't handle strings with embedded whitespace) More... | |
| class | TypeFactory |
| A simple factory implementation (instances can be created using the type's registered name) More... | |
Functions | |
| template<class... ARGS> | |
| string | format (const char *format_string, ARGS &&... args) |
| A minimalistic string formatting built on top of the C-formatting facilities (xprintf formatting) More... | |
| void | fatalMessage (const char *format,...) |
| Logs messsages for severe error conditions (normally just before terminating the program) | |
| PubSub< string > * | consoleOutput () |
| Console output messages. | |
| template<class... ARGS> | |
| void | log (const char *format_string, ARGS &&... args) |
| Outputs a formatted log message. | |
| template<class T > | |
| const Stringify< T > * | stringify () |
| Returns the stringifier for type T. | |
| template<class T > | |
| string | toString (const T &value) |
| Convenience helper to stringify a value. | |
| template<class T > | |
| T | fromString (const string &str) |
| Convenience helper to parse a string value. | |
| template<class T > | |
| vector< string > | knownValues () |
| Convenience helper to return the set of known values. | |
Generic utilities.
| string core::format | ( | const char * | format_string, |
| ARGS &&... | args | ||
| ) |
A minimalistic string formatting built on top of the C-formatting facilities (xprintf formatting)
In addition to the plain printf(), core::format() allows std::string to be passed directly for s conversion specifiers.
1.8.14