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

#include <service.h>

Public Member Functions

 service_class_helper_t ()
 
bool create (service_ptr_t< T > &p_out, t_size p_index) const
 
service_ptr_t< Tcreate (t_size p_index) const
 
service_class_ref get_class () const
 
t_size get_count () const
 

Private Attributes

service_class_ref m_class
 

Detailed Description

template<typename T>
class service_class_helper_t< T >

Definition at line 467 of file service.h.

Constructor & Destructor Documentation

template<typename T>
service_class_helper_t< T >::service_class_helper_t ( )
inline

Definition at line 469 of file service.h.

471  }
service_class_ref m_class
Definition: service.h:487
static service_class_ref enum_find_class(const GUID &p_guid)
Definition: service.cpp:6

Member Function Documentation

template<typename T>
bool service_class_helper_t< T >::create ( service_ptr_t< T > &  p_out,
t_size  p_index 
) const
inline

Definition at line 476 of file service.h.

476  {
477  return _service_instantiate_helper(p_out, m_class, p_index);
478  }
service_class_ref m_class
Definition: service.h:487
static bool _service_instantiate_helper(service_ptr_t< what > &out, service_class_ref servClass, t_size index)
Definition: service.h:451
template<typename T>
service_ptr_t<T> service_class_helper_t< T >::create ( t_size  p_index) const
inline

Definition at line 480 of file service.h.

480  {
481  service_ptr_t<T> temp;
482  if (!create(temp,p_index)) uBugCheck();
483  return temp;
484  }
bool create(service_ptr_t< T > &p_out, t_size p_index) const
Definition: service.h:476
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
PFC_NORETURN void SHARED_EXPORT uBugCheck()
template<typename T>
service_class_ref service_class_helper_t< T >::get_class ( ) const
inline

Definition at line 485 of file service.h.

485 {return m_class;}
service_class_ref m_class
Definition: service.h:487
template<typename T>
t_size service_class_helper_t< T >::get_count ( ) const
inline

Definition at line 472 of file service.h.

472  {
474  }
static t_size enum_get_count(service_class_ref p_class)
Definition: service.cpp:18
service_class_ref m_class
Definition: service.h:487

Field Documentation

template<typename T>
service_class_ref service_class_helper_t< T >::m_class
private

Definition at line 487 of file service.h.


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