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

#include <RCBase.hh>

+ Inheritance diagram for Genfun::RCBase:

Public Member Functions

 RCBase ()
 
void ref () const
 
void unref () const
 
unsigned int refCount () const
 

Protected Member Functions

virtual ~RCBase ()
 

Detailed Description

Author

Definition at line 17 of file RCBase.hh.

Constructor & Destructor Documentation

◆ RCBase()

Genfun::RCBase::RCBase ( )

Definition at line 3 of file RCBase.cc.

4 : _count(0)
5{
6}

◆ ~RCBase()

Genfun::RCBase::~RCBase ( )
protectedvirtual

Definition at line 9 of file RCBase.cc.

10{
11}

Member Function Documentation

◆ ref()

void Genfun::RCBase::ref ( ) const

Definition at line 15 of file RCBase.cc.

16{
17 _count++;
18}

Referenced by Genfun::RKIntegrator::RKFunction::RKFunction(), and Genfun::RKIntegrator::RKIntegrator().

◆ refCount()

unsigned int Genfun::RCBase::refCount ( ) const

Definition at line 34 of file RCBase.cc.

35{
36 return _count;
37}

◆ unref()

void Genfun::RCBase::unref ( ) const

Definition at line 20 of file RCBase.cc.

21{
22 if (!_count)
23 {
24
25 }
26 else
27 {
28 _count--;
29 if (!_count)
30 delete this;
31 }
32}

Referenced by Genfun::RKIntegrator::RKFunction::~RKFunction(), and Genfun::RKIntegrator::~RKIntegrator().


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