CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ZMuseCount Class Reference

#include <ZMuseCount.h>

Public Member Functions

 ZMuseCount ()
 
 ZMuseCount (const ZMuseCount &u)
 
 ~ZMuseCount ()
 
bool only ()
 
bool makeonly ()
 
bool reattach (const ZMuseCount &u)
 

Detailed Description

Definition at line 17 of file ZMuseCount.h.

Constructor & Destructor Documentation

◆ ZMuseCount() [1/2]

ZMuseCount::ZMuseCount ( )

◆ ZMuseCount() [2/2]

ZMuseCount::ZMuseCount ( const ZMuseCount u)

◆ ~ZMuseCount()

ZMuseCount::~ZMuseCount ( )

Member Function Documentation

◆ 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} // makeonly()
bool only()

◆ only()

bool ZMuseCount::only ( )

Referenced by makeonly().

◆ reattach()

bool ZMuseCount::reattach ( const ZMuseCount u)

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} // reattach()

The documentation for this class was generated from the following files: