Service returning a provider interface. More...
#include <ServiceProviderWrappers.h>
Public Types | |
using | provider_type = PROVIDER |
type of the service provider More... | |
Public Member Functions | |
virtual | ~ServiceProviderInterfaceWrapper ()=default |
Virtual destructor. More... | |
provider_type const * | provider () const |
Returns a constant pointer to the service provider interface. More... | |
Protected Member Functions | |
virtual provider_type const * | do_provider () const =0 |
Implementation of the provider() function, to be overridden. More... | |
Service returning a provider interface.
PROVIDER | type of service provider interface to be returned |
This class provides a art service to wrap a GArSoft service provider interface.
The behaviour of the implementations is not constrained by this interface. It only adds support for gar::providerFrom()
function.
Implementations must override do_provider()
to return a pointer which provider()
will forward to the caller.
Definition at line 136 of file ServiceProviderWrappers.h.
using gar::ServiceProviderInterfaceWrapper< PROVIDER >::provider_type = PROVIDER |
type of the service provider
Definition at line 139 of file ServiceProviderWrappers.h.
|
virtualdefault |
Virtual destructor.
|
protectedpure virtual |
Implementation of the provider() function, to be overridden.
|
inline |
Returns a constant pointer to the service provider interface.
Definition at line 146 of file ServiceProviderWrappers.h.