A base class that modules implemented as classes might derive from.
More...
#include <sauce/modules.h>
|
virtual void | configure () const =0 |
| Override in derived classes to declare bindings.
|
|
template<typename Iface > |
BindClause< Iface > | bind () const |
| Begin binding the chosen interface. More...
|
|
A base class that modules implemented as classes might derive from.
Such a module would override configure() and call bind() directly, instead of handling an explicit Binder.
◆ AbstractModule()
sauce::AbstractModule::AbstractModule |
( |
| ) |
|
|
inlineprotected |
◆ ~AbstractModule()
virtual sauce::AbstractModule::~AbstractModule |
( |
| ) |
|
|
inlinevirtual |
◆ bind()
template<typename Iface >
BindClause< Iface > sauce::AbstractModule::bind |
( |
| ) |
const |
|
inlineprotected |
Begin binding the chosen interface.
60 {
61 return binder->
bind<Iface>();
62 }
BindClause< Iface > bind()
Begin binding the chosen interface.
Definition: binder.h:339
◆ operator()()
void sauce::AbstractModule::operator() |
( |
Binder & |
binder | ) |
const |
|
inline |
68 {
69 BinderGuard guard(this, &binder);
71 }
virtual void configure() const =0
Override in derived classes to declare bindings.
The documentation for this class was generated from the following file: