foobar2000 SDK  2015-08-03
Public Member Functions
service_impl_single_t< T >

#include <service_impl.h>

+ Inheritance diagram for service_impl_single_t< T >:

Public Member Functions

int service_add_ref () throw ()
 
int service_release () throw ()
 

Detailed Description

template<typename T>
class service_impl_single_t< T >

Template implementing dummy version of reference-counting features of service_base. Intended for static/local/member instantiation: "static service_impl_single_t<someclass> myvar(params);". Because reference counting features are disabled (dummy reference counter), code instantiating it is responsible for deleting it as well as ensuring that no references are active when the object gets deleted.
Note that some constructor parameters such as NULL will need explicit typecasts to ensure correctly guessed types for constructor function template (null string needs to be (const char*)NULL rather than just NULL, etc).

Definition at line 44 of file service_impl.h.

Member Function Documentation

template<typename T>
int service_impl_single_t< T >::service_add_ref ( )
throw (
)
inline

Reimplemented in service_impl_single_t< input_file_type_impl >.

Definition at line 48 of file service_impl.h.

48 {return 1;}
template<typename T>
int service_impl_single_t< T >::service_release ( )
throw (
)
inline

Reimplemented in service_impl_single_t< input_file_type_impl >.

Definition at line 47 of file service_impl.h.

47 {return 1;}

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