Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::RefCountedImpl Class Reference

Implementation class for reference counter. More...

#include <ref_counted_impl.h>

Public Member Functions

 RefCountedImpl ()
 Initialize. More...
 
int getref () const
 Get reference counter. More...
 
int incref () const
 Increment reference counter. More...
 
int decref () const
 Decrement reference counter. More...
 

Detailed Description

Implementation class for reference counter.

Allows to increment and decrement reference counter.

Definition at line 23 of file ref_counted_impl.h.

Constructor & Destructor Documentation

◆ RefCountedImpl()

roc::core::RefCountedImpl::RefCountedImpl ( )

Initialize.

Member Function Documentation

◆ decref()

int roc::core::RefCountedImpl::decref ( ) const

Decrement reference counter.

Returns
reference counter value after decrementing.

◆ getref()

int roc::core::RefCountedImpl::getref ( ) const

Get reference counter.

◆ incref()

int roc::core::RefCountedImpl::incref ( ) const

Increment reference counter.

Returns
reference counter value after incrementing.

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