OpenImageIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
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 &)
 

Detailed Description

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

Constructor & Destructor Documentation

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.

Member Function Documentation

bool RefCnt::_decref ( ) const
inline

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

void RefCnt::_incref ( ) const
inline

Add a reference

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.


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