Lines Matching refs:BindInstance
179 * You can bind an interface to a type bound using a constant binding (see the bindInstance method that takes a const&
186 * .bindInstance(my_implementation)
198 * .bindInstance(cFactory);
342 * .bindInstance(*request);
355 * It's also possible to bind constants, see the documentation of the bindInstance() method taking a const& for
359 PartialComponent<fruit::impl::BindInstance<C, C>, Bindings...> bindInstance(C& instance);
369 * .bindInstance(my_expensive_class);
396 PartialComponent<fruit::impl::BindConstInstance<C, C>, Bindings...> bindInstance(const C& instance);
402 PartialComponent<fruit::impl::BindConstInstance<C, C>, Bindings...> bindInstance(C&&) = delete;
405 * Similar to the first version of bindInstance(), but allows to specify an annotated type that
411 * .bindInstance<fruit::Annotated<Hostname, std::string>>(*hostname);
415 PartialComponent<fruit::impl::BindInstance<AnnotatedType, C>, Bindings...> bindInstance(C& instance);
423 * .bindInstance
426 * See the documentation for the bindInstance() overload that takes a non-annotated const& for more details.
429 PartialComponent<fruit::impl::BindConstInstance<AnnotatedType, C>, Bindings...> bindInstance(const C& instance);
435 PartialComponent<fruit::impl::BindConstInstance<AnnotatedType, C>, Bindings...> bindInstance(C&& instance);
476 * .bindInstance(aFunctor)
535 * Similar to bindInstance(), but adds a multibinding instead.
537 * Multibindings are independent from bindings; creating a binding with bindInstance doesn't count as a
544 * Another difference compared to bindInstance() is that you can't use this to bind a const& (note that there is no
799 * .bindInstance(aFunctor)