Lunchbox
1.16.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
Public Types | |
using | Constructor = std::function< T *(const typename T::InitDataT &)> |
The constructor method for Plugin objects. More... | |
using | HandlesFunc = std::function< bool(const typename T::InitDataT &)> |
The method to check if the plugin can handle a given initData. More... | |
using | DescriptionFunc = std::function< std::string()> |
The method to get the plugin's description. More... | |
Public Member Functions | |
Plugin (const Constructor &constructor, const HandlesFunc &handles_, const DescriptionFunc &description) | |
Construct a new Plugin. More... | |
T * | construct (const typename T::InitDataT &data) const |
Construct a new plugin instance. More... | |
bool | handles (const typename T::InitDataT &data) const |
std::string | getDescription () const |
using lunchbox::Plugin< T >::Constructor = std::function<T*(const typename T::InitDataT&)> |
using lunchbox::Plugin< T >::DescriptionFunc = std::function<std::string()> |
using lunchbox::Plugin< T >::HandlesFunc = std::function<bool(const typename T::InitDataT&)> |
|
inline |
|
inline |
|
inline |
|
inline |