|
Evo C++ Library v0.5.1
|
#include <evo/cortex.h>
A simple base class for defining a module using a similar pattern to Cortex, but without the dynamic Map.
Here are some examples using alternatives to Cortex.
This example uses a struct to hold modules.
This example uses a raw array – List or Array can also be used.
Public Member Functions | |
| virtual | ~CortexModuleBase () |
| Destructor. More... | |
| template<class T > | |
| T & | as () |
| Get this module as a concrete type. More... | |
|
inlinevirtual |
Destructor.
|
inline |
Get this module as a concrete type.
dynamic_cast to cast the base type to the requested typestd::bad_cast if the cast failsstatic_cast instead define EVO_CORTEX_DYNAMIC_CAST 0 (before including this)ItemT) doesn't match the current object for key| T | Concrete module type to cast this to |
T&)
1.8.13