foobar2000 SDK  2015-08-03
Public Member Functions | Protected Member Functions | Private Attributes
pfc::refcounted_object_root

#include <ref_counter.h>

+ Inheritance diagram for pfc::refcounted_object_root:

Public Member Functions

void _refcount_release_temporary () throw ()
 
void refcount_add_ref () throw ()
 
void refcount_release () throw ()
 

Protected Member Functions

 refcounted_object_root ()
 
virtual ~refcounted_object_root ()
 

Private Attributes

refcounter m_counter
 

Detailed Description

Definition at line 37 of file ref_counter.h.

Constructor & Destructor Documentation

pfc::refcounted_object_root::refcounted_object_root ( )
inlineprotected

Definition at line 44 of file ref_counter.h.

44 {}
virtual pfc::refcounted_object_root::~refcounted_object_root ( )
inlineprotectedvirtual

Definition at line 45 of file ref_counter.h.

45 {}

Member Function Documentation

void pfc::refcounted_object_root::_refcount_release_temporary ( )
throw (
)
inline

Definition at line 42 of file ref_counter.h.

42 {--m_counter;}//for internal use only!
void pfc::refcounted_object_root::refcount_add_ref ( )
throw (
)
inline

Definition at line 40 of file ref_counter.h.

40 {++m_counter;}
void pfc::refcounted_object_root::refcount_release ( )
throw (
)
inline

Definition at line 41 of file ref_counter.h.

41 {if (--m_counter == 0) delete this;}

Field Documentation

refcounter pfc::refcounted_object_root::m_counter
private

Definition at line 47 of file ref_counter.h.


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