foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
service_factory_single_t< T >

#include <service.h>

+ Inheritance diagram for service_factory_single_t< T >:

Public Member Functions

Tget_static_instance ()
 
const Tget_static_instance () const
 
 TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD (service_factory_single_t, g_instance) void instance_create(service_ptr_t< service_base > &p_out)
 
- Public Member Functions inherited from service_factory_base_t< T::t_interface_entrypoint >
 service_factory_base_t ()
 
- Public Member Functions inherited from service_factory_base
const GUIDget_class_guid () const
 
virtual void instance_create (service_ptr_t< service_base > &p_out)=0
 

Private Attributes

service_impl_single_t< Tg_instance
 

Additional Inherited Members

- Static Public Member Functions inherited from service_factory_base
static bool enum_create (service_ptr_t< service_base > &p_out, service_class_ref p_class, t_size p_index)
 
static service_class_ref enum_find_class (const GUID &p_guid)
 
static t_size enum_get_count (service_class_ref p_class)
 
static bool is_service_present (const GUID &g)
 
- Data Fields inherited from service_factory_base
service_factory_base__internal__next
 
- Static Public Attributes inherited from service_factory_base
static service_factory_base__internal__list = NULL
 
- Protected Member Functions inherited from service_factory_base
 service_factory_base (const GUID &p_guid, service_factory_base *&factoryList)
 
 ~service_factory_base ()
 

Detailed Description

template<typename T>
class service_factory_single_t< T >

Definition at line 620 of file service.h.

Member Function Documentation

template<typename T>
T& service_factory_single_t< T >::get_static_instance ( )
inline

Definition at line 629 of file service.h.

629 {return g_instance;}
service_impl_single_t< T > g_instance
Definition: service.h:621
template<typename T>
const T& service_factory_single_t< T >::get_static_instance ( ) const
inline

Definition at line 630 of file service.h.

630 {return g_instance;}
service_impl_single_t< T > g_instance
Definition: service.h:621
template<typename T>
service_factory_single_t< T >::TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD ( service_factory_single_t< T ,
g_instance   
)
inline

Definition at line 623 of file service.h.

625  {
626  p_out = pfc::implicit_cast<service_base*>(pfc::implicit_cast<typename T::t_interface_entrypoint*>(pfc::implicit_cast<T*>(&g_instance)));
627  }
service_impl_single_t< T > g_instance
Definition: service.h:621
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
Definition: service.h:333
t_ret implicit_cast(t_ret val)
Definition: primitives.h:182

Field Documentation

template<typename T>
service_impl_single_t<T> service_factory_single_t< T >::g_instance
private

Definition at line 621 of file service.h.


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