dxd - dynax driver framework  3209
cross platform open source driver development framework
dxd::referenced Class Reference

reference counting base class More...

#include <dxd_reference.h>

+ Inheritance diagram for dxd::referenced:
+ Collaboration diagram for dxd::referenced:

Public Member Functions

template<typename reference_t >
int release (reference_t &reference)
 
void retain ()
 

Public Attributes

atomic< int > references =0
 

Protected Member Functions

 referenced ()=default
 
 referenced (int references)
 
virtual ~referenced ()=default
 

Detailed Description

reference counting base class

Constructor & Destructor Documentation

◆ referenced() [1/2]

dxd::referenced::referenced ( )
protecteddefault

◆ referenced() [2/2]

dxd::referenced::referenced ( int  references)
inlineprotected
+ Here is the call graph for this function:

◆ ~referenced()

virtual dxd::referenced::~referenced ( )
protecteddefault
+ Here is the caller graph for this function:

Member Function Documentation

◆ release()

template<typename reference_t >
int dxd::referenced::release ( reference_t &  reference)
inline

◆ retain()

void dxd::referenced::retain ( )
inline
+ Here is the caller graph for this function:

Member Data Documentation

◆ references

atomic<int> dxd::referenced::references =0

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

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Aug 14 2020

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.