Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::RefCntOwnership< T > Struct Template Reference

Reference countable object ownership. More...

#include <ownership.h>

Public Types

typedef SharedPtr< T, core::RefCntOwnershipPointer
 Pointer type returned from intrusive containers. More...
 

Static Public Member Functions

static void acquire (T &object)
 Acquire ownership. More...
 
static void release (T &object)
 Release ownership. More...
 

Detailed Description

template<class T>
struct roc::core::RefCntOwnership< T >

Reference countable object ownership.

Definition at line 21 of file ownership.h.

Member Typedef Documentation

template<class T >
typedef SharedPtr<T, core::RefCntOwnership> roc::core::RefCntOwnership< T >::Pointer

Pointer type returned from intrusive containers.

Remarks
Container should return smart pointers instead of raw pointers since it can call decref() on returned object later.

Definition at line 26 of file ownership.h.

Member Function Documentation

template<class T >
static void roc::core::RefCntOwnership< T >::acquire ( T &  object)
inlinestatic

Acquire ownership.

Definition at line 29 of file ownership.h.

template<class T >
static void roc::core::RefCntOwnership< T >::release ( T &  object)
inlinestatic

Release ownership.

Definition at line 34 of file ownership.h.


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