Sauce-0.10.1
A C++ Dependency Injection Framework
Public Member Functions | Friends | List of all members
sauce::Binder Class Reference

Passed to modules to create bindings. More...

#include <sauce/binder.h>

Inheritance diagram for sauce::Binder:
Inheritance graph
[legend]
Collaboration diagram for sauce::Binder:
Collaboration graph
[legend]

Public Member Functions

template<typename Iface >
BindClause< Iface > bind ()
 Begin binding the chosen interface. More...
 
- Public Member Functions inherited from sauce::internal::PendingThrower
template<typename Exception >
void throwLater ()
 Save an exception of the given type to throw when it is safe. More...
 
void throwAnyPending ()
 Throw and clear any saved exception. More...
 
PendingThrow clear ()
 Clear and return any saved exception. More...
 

Friends

class Modules
 

Detailed Description

Passed to modules to create bindings.

Member Function Documentation

◆ bind()

template<typename Iface >
BindClause< Iface > sauce::Binder::bind ( )
inline

Begin binding the chosen interface.

339 {
340 i::ClauseStatePtr clauseState(new i::ClauseState(bindings, *this));
341 BindClause<Iface> bindClause(clauseState);
342 return bindClause;
343 }
The accumulated state passed between Clauses that ultimately results in a new Binding.
Definition: clause.h:26

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