Sauce-0.10.1
A C++ Dependency Injection Framework
|
A builder that creates a single binding. More...
#include <sauce/binder.h>
Public Member Functions | |
template<typename Name > | |
NamedClause< Named< Iface, Name > > | named () |
NamedClause< Named< Iface, Unnamed > > | named (std::string const name) |
ToInstanceClause< Named< Iface, Unnamed > > | toInstance (IfacePtr iface) |
template<typename Method > | |
ToMethodClause< Named< Iface, Unnamed >, Method > | toMethod (Method method) |
template<typename Signature > | |
ToMethodNamingClause< Named< Iface, Unnamed >, Signature > | toMethodNaming (typename ToMethodNamingClause< Named< Iface, Unnamed >, Signature >::Method method) |
template<typename SetDependency > | |
ToMethodNamingClause< Named< Iface, Unnamed >, void(Iface::*)(SetDependency)> | setting (typename ToMethodNamingClause< Named< Iface, Unnamed >, void(Iface::*)(SetDependency)>::Method method, std::string name=unnamed()) |
template<typename SetIface , typename Name > | |
ToMethodNamingClause< Named< Iface, Unnamed >, void(Iface::*)(Named< SetIface, Name >)> | setting (typename ToMethodNamingClause< Named< Iface, Unnamed >, void(Iface::*)(Named< SetIface, Name >)>::Method method) |
template<typename Scope > | |
InClause< Named< Iface, Unnamed >, Scope > | in () |
template<typename Ctor > | |
ToClause< Named< Iface, Unnamed >, NoScope, Ctor > | to () |
template<typename ProviderCtor > | |
ToProviderClause< ProviderDependency, NoScope, ProviderCtor > | toProvider () |
![]() | |
Clause< Named< Iface, Unnamed > > & | naming (unsigned int position, std::string const name) |
void | setState (ClauseStatePtr state) |
Friends | |
class | Binder |
Additional Inherited Members | |
![]() | |
virtual void | onComplete () |
Clause (ClauseStatePtr state) | |
ClauseStatePtr | getState () |
Next | pass (Next next) |
void | setDynamicName (std::string const name) |
void | throwLater (Exception) |
void | bindDynamicDependencyName (unsigned int position, std::string const name) |
A builder that creates a single binding.