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 170 of file refcnt.h.

Constructor & Destructor Documentation

RefCnt::RefCnt ( )
inlineprotected

Definition at line 177 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 181 of file refcnt.h.

RefCnt::~RefCnt ( )
inlineprotected

Definition at line 183 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 192 of file refcnt.h.

void RefCnt::_incref ( ) const
inline

Add a reference

Definition at line 188 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 196 of file refcnt.h.


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