RefCnt Class Reference

#include <refcnt.h>

List of all members.

Public Member Functions

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

Detailed Description

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


Constructor & Destructor Documentation

RefCnt::RefCnt ( RefCnt r  )  [inline]

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 r  )  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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Oct 27 06:30:40 2009 for OpenImageIO by  doxygen 1.6.1