foobar2000 SDK  2015-01-14
Public Member Functions | Protected Member Functions | Private Attributes
pfc::rc_container_base

#include <rcptr.h>

+ Inheritance diagram for pfc::rc_container_base:

Public Member Functions

long add_ref () throw ()
 
long release () throw ()
 

Protected Member Functions

virtual ~rc_container_base ()
 

Private Attributes

refcounter m_counter
 

Detailed Description

Definition at line 8 of file rcptr.h.

Constructor & Destructor Documentation

virtual pfc::rc_container_base::~rc_container_base ( )
inlineprotectedvirtual

Definition at line 19 of file rcptr.h.

19 {}

Member Function Documentation

long pfc::rc_container_base::add_ref ( )
throw (
)
inline

Definition at line 10 of file rcptr.h.

10  {
11  return ++m_counter;
12  }
refcounter m_counter
Definition: rcptr.h:21
long pfc::rc_container_base::release ( )
throw (
)
inline

Definition at line 13 of file rcptr.h.

13  {
14  long ret = --m_counter;
15  if (ret == 0) PFC_ASSERT_NO_EXCEPTION( delete this );
16  return ret;
17  }
refcounter m_counter
Definition: rcptr.h:21

Field Documentation

refcounter pfc::rc_container_base::m_counter
private

Definition at line 21 of file rcptr.h.


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