OpenImageIO
|
#include <refcnt.h>
Public Member Functions | |
void | _incref () const |
bool | _decref () const |
const RefCnt & | operator= (const RefCnt &) const |
Protected Member Functions | |
RefCnt (RefCnt &) | |
Mix-in class that adds a reference count, implemented as an atomic counter.
|
inlineprotected |
Define copy constructor to NOT COPY reference counts! Copying a struct doesn't change how many other things point to it.
|
inline |
Delete a reference, return true if that was the last reference.
|
inline |
Add a reference
Define operator= to NOT COPY reference counts! Assigning a struct doesn't change how many other things point to it.