Skyward boardcore
|
Base class for an Injectable with dependencies. More...
#include <DependencyManager.h>
Public Member Functions | |
virtual void | inject (DependencyInjector &injector) override |
Invoked by the DependencyManager to inject dependencies. Override this method to retrieve dependencies from the injector via DependencyInjector::get() . | |
template<typename T , typename = std::enable_if_t< DependencyManagerDetails::Contains<T, Types...>::value>> | |
T * | getModule () |
Get one of the modules in Types. | |
![]() | |
virtual | ~Injectable ()=default |
Protected Types | |
using | Super = InjectableWithDeps<Types...> |
Base class for an Injectable with dependencies.
Definition at line 286 of file DependencyManager.h.
|
protected |
Alias of the super class, to be used in derived classes in the constructor or when overriding methods
Definition at line 293 of file DependencyManager.h.
|
inline |
Get one of the modules in Types.
Definition at line 310 of file DependencyManager.h.
|
inlineoverridevirtual |
Invoked by the DependencyManager to inject dependencies. Override this method to retrieve dependencies from the injector via DependencyInjector::get()
.
injector | Proxy class used to obtain dependencies. |
Reimplemented from Boardcore::Injectable.
Definition at line 296 of file DependencyManager.h.