Sauce-0.10.1
A C++ Dependency Injection Framework
|
An interface for including custom factories in an Injector. More...
#include <sauce/provider.h>
Public Types | |
typedef Abstract | RequestsSelfInjection |
![]() | |
typedef i::Key< Dependency >::Iface | Provides |
Indicates to template magic that this type exposes sauce::shared_ptr<Provides> get(). | |
Public Member Functions | |
void | setSelf (sauce::weak_ptr< Abstract > weak) |
sauce::shared_ptr< Iface > | get () |
Provide an Iface. More... | |
Friends | |
class | i::DisposalDeleter< Iface, Abstract > |
An interface for including custom factories in an Injector.
|
inlinevirtual |
Provide an Iface.
A naked instance pointer is obtained with provide(), and wrapped in a shared_ptr. It is also given a custom deleter, to dispose of the naked pointer with dispose(Iface *).
Implements sauce::Provider< Dependency >.