libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
refcnt.h File Reference

Contains the definition for RefCnt class. More...

#include <libbbb/libbbb.h>

Go to the source code of this file.

Classes

class  bbb::RefCnt
 Class that may be used as base for reference counting of instances. More...
 

Macros

#define REMOVE_CONSTRUCTOR_REF(p)   p->decRef()
 
#define INC_REF(p, o)   p->incRef()
 adds a new reference owned by o; saves the owner
 
#define DEC_REF(p, o)   p->decRef()
 discards the reference counter
 
#define OWN_REF(p, crto, newo)
 changes the owner of the reference
 
#define OWN_CREF(p, newo)
 changes the owner of the initial (construcotr's) reference
 

Detailed Description

Contains the definition for RefCnt class.

Date
Feb 2013
Author
TNick