#include <ZMuseCount.h>
Definition at line 17 of file ZMuseCount.h.
◆ ZMuseCount() [1/2]
ZMuseCount::ZMuseCount |
( |
| ) |
|
◆ ZMuseCount() [2/2]
◆ ~ZMuseCount()
ZMuseCount::~ZMuseCount |
( |
| ) |
|
◆ makeonly()
bool ZMuseCount::makeonly |
( |
| ) |
|
Definition at line 19 of file ZMuseCount.cc.
19 {
20
21 bool result = ( !
only() );
22
23 if ( result ) {
24 --*p;
25 p = new int(1);
26 }
27
28 return result;
29
30}
◆ only()
bool ZMuseCount::only |
( |
| ) |
|
◆ reattach()
Definition at line 33 of file ZMuseCount.cc.
33 {
34
35 ++*u.p;
36
37 bool result = ( --*p == 0 );
38 if ( result )
39 delete p;
40
41 p = u.p;
42 return result;
43
44}
The documentation for this class was generated from the following files: