Helper class for constructing InterfaceMap instances based on service implementations or service factories. More...
Public Member Functions | |
template<class Impl > | |
MakeInterfaceMap (Impl *impl) | |
Constructor taking a service implementation pointer. More... | |
MakeInterfaceMap (ServiceFactory *factory) | |
Constructor taking a service factory. More... | |
operator InterfaceMap () | |
Public Attributes | |
ServiceFactory * | m_factory |
detail::InterfacesTuple< std::tuple, Interfaces...>::type | m_interfaces |
Helper class for constructing InterfaceMap instances based on service implementations or service factories.
Example usage:
|
inline |
Constructor taking a service implementation pointer.
impl | A service implementation pointer, which must be castable to a all specified service interfaces. |
|
inline |
Constructor taking a service factory.
factory | A service factory. |
|
inline |
ServiceFactory* MakeInterfaceMap< Interfaces >::m_factory |
detail::InterfacesTuple<std::tuple, Interfaces...>::type MakeInterfaceMap< Interfaces >::m_interfaces |