Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
ReferenceCounter Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <ReferenceCounter.hpp>
Public Member Functions | |
void | reset () |
Set counter to 0 and activate it. | |
bool | increase () |
returns false only when the reference counter was deactivated. | |
bool | decrease () |
returns false only when release is more often called than use | |
void | deactivate () |
deactivates the RefCounter. | |
bool | deactivateWhenUsage (unsigned int i) |
deactivates the RefCounter. | |
bool | decreaseAndDeactivateWhenUsage (unsigned int i) |
first decreases the refCounter then deactivates the RefCounter. | |
unsigned int | getUsage () const |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- ReferenceCounter.hpp,v 1.5 2005/04/27 10:21:50 klschoef Exp
Definition at line 61 of file ReferenceCounter.hpp.
Member Function Documentation
|
deactivates the RefCounter. Useful, when preparing to destroy the refCounter. Definition at line 99 of file ReferenceCounter.cpp.
|
|
deactivates the RefCounter. when usage is lower equal
|
|
first decreases the refCounter then deactivates the RefCounter. when usage is lower equal
|
The documentation for this class was generated from the following files: