Predator
[unstable] git snapshot
|
#include <syments.hh>
Public Member Functions | |
RefCounter () | |
initialize to 1 | |
RefCounter (const RefCounter &) | |
initialize to 1, even if the source has another value | |
RefCounter & | operator= (const RefCounter &) |
initialize to 1, even if the source has another value | |
~RefCounter () | |
the destruction is only allowed with reference count equal to zero | |
bool | isShared () const |
bool | enter () |
bool | requireExclusivity () |
bool | leave () |
Private Types | |
typedef int | TCnt |
Private Attributes | |
TCnt | cnt_ |
Definition at line 37 of file syments.hh.
|
private |
Definition at line 39 of file syments.hh.
|
inline |
initialize to 1
Definition at line 44 of file syments.hh.
|
inline |
initialize to 1, even if the source has another value
Definition at line 50 of file syments.hh.
|
inline |
the destruction is only allowed with reference count equal to zero
Definition at line 62 of file syments.hh.
References CL_BREAK_IF, and cnt_.
|
inline |
Definition at line 71 of file syments.hh.
References CL_BREAK_IF, and cnt_.
|
inline |
Definition at line 66 of file syments.hh.
References CL_BREAK_IF, and cnt_.
Referenced by requireExclusivity().
|
inline |
Definition at line 85 of file syments.hh.
References cnt_.
|
inline |
initialize to 1, even if the source has another value
Definition at line 56 of file syments.hh.
References cnt_.
|
inline |
Definition at line 77 of file syments.hh.
References cnt_, and isShared().
|
private |
Definition at line 40 of file syments.hh.
Referenced by enter(), isShared(), leave(), operator=(), requireExclusivity(), and ~RefCounter().