Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::Injectable Class Reference

Interface for an injectable dependency. More...

#include <DependencyManager.h>

Inheritance diagram for Boardcore::Injectable:

Public Member Functions

virtual ~Injectable ()=default
 
virtual void inject (DependencyInjector &injector)
 Invoked by the DependencyManager to inject dependencies. Override this method to retrieve dependencies from the injector via DependencyInjector::get().
 

Detailed Description

Interface for an injectable dependency.

Definition at line 61 of file DependencyManager.h.

Constructor & Destructor Documentation

◆ ~Injectable()

virtual Boardcore::Injectable::~Injectable ( )
virtualdefault

Member Function Documentation

◆ inject()

virtual void Boardcore::Injectable::inject ( DependencyInjector & injector)
inlinevirtual

Invoked by the DependencyManager to inject dependencies. Override this method to retrieve dependencies from the injector via DependencyInjector::get().

Parameters
injectorProxy class used to obtain dependencies.

Reimplemented in Boardcore::InjectableWithDeps< Types >.

Definition at line 73 of file DependencyManager.h.


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