OpenTTD Source 20241224-master-gee860a5c8e
ProviderManager< TProviderType > Class Template Reference

The ProviderManager manages a single Provider-type. More...

#include <provider_manager.h>

Public Member Functions

 ProviderManager (ProviderManager const &)=delete
 
ProviderManageroperator= (ProviderManager const &)=delete
 

Static Public Member Functions

static void Register (TProviderType &instance)
 
static void Unregister (TProviderType &instance)
 
static std::vector< TProviderType * > & GetProviders ()
 Get the currently known sound loaders.
 

Detailed Description

template<typename TProviderType>
class ProviderManager< TProviderType >

The ProviderManager manages a single Provider-type.

It allows for automatic registration and unregistration of providers.

Template Parameters
TService provider type.

Definition at line 21 of file provider_manager.h.

Member Function Documentation

◆ GetProviders()

template<typename TProviderType >
static std::vector< TProviderType * > & ProviderManager< TProviderType >::GetProviders ( )
inlinestatic

Get the currently known sound loaders.

Returns
The known sound loaders.

Definition at line 46 of file provider_manager.h.

◆ Register()

template<typename TProviderType >
static void ProviderManager< TProviderType >::Register ( TProviderType &  instance)
inlinestatic

Definition at line 28 of file provider_manager.h.

◆ Unregister()

template<typename TProviderType >
static void ProviderManager< TProviderType >::Unregister ( TProviderType &  instance)
inlinestatic

Definition at line 36 of file provider_manager.h.


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