HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RefCnt Class Reference

#include <refcnt.h>

Public Member Functions

void _incref () const
 
bool _decref () const
 
const RefCntoperator= (const RefCnt &) const
 

Protected Member Functions

 RefCnt ()
 
 RefCnt (RefCnt &)
 
 ~RefCnt ()
 

Detailed Description

Mix-in class that adds a reference count, implemented as an atomic counter.

Definition at line 186 of file refcnt.h.

Constructor & Destructor Documentation

RefCnt::RefCnt ( )
inlineprotected

Definition at line 193 of file refcnt.h.

RefCnt::RefCnt ( RefCnt )
inlineprotected

Define copy constructor to NOT COPY reference counts! Copying a struct doesn't change how many other things point to it.

Definition at line 197 of file refcnt.h.

RefCnt::~RefCnt ( )
inlineprotected

Definition at line 199 of file refcnt.h.

Member Function Documentation

bool RefCnt::_decref ( ) const
inline

Delete a reference, return true if that was the last reference.

Definition at line 208 of file refcnt.h.

void RefCnt::_incref ( ) const
inline

Add a reference

Definition at line 204 of file refcnt.h.

const RefCnt& RefCnt::operator= ( const RefCnt ) const
inline

Define operator= to NOT COPY reference counts! Assigning a struct doesn't change how many other things point to it.

Definition at line 212 of file refcnt.h.


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