ATLAS Offline Software
Loading...
Searching...
No Matches
pool::RefCounter Class Reference

#include <pool.h>

Inheritance diagram for pool::RefCounter:
Collaboration diagram for pool::RefCounter:

Public Member Functions

 RefCounter ()
 RefCounter (const RefCounter &)
RefCounteroperator= (const RefCounter &)
int addRef ()
 Increase the reference count.
int subRef ()
 Decrease the reference count.

Private Attributes

int m_count = 1

Detailed Description

Definition at line 105 of file Database/APR/StorageSvc/StorageSvc/pool.h.

Constructor & Destructor Documentation

◆ RefCounter() [1/2]

pool::RefCounter::RefCounter ( )
inline

Definition at line 109 of file Database/APR/StorageSvc/StorageSvc/pool.h.

109{}

◆ RefCounter() [2/2]

pool::RefCounter::RefCounter ( const RefCounter & )
inline

Member Function Documentation

◆ addRef()

int pool::RefCounter::addRef ( )
inline

Increase the reference count.

Definition at line 114 of file Database/APR/StorageSvc/StorageSvc/pool.h.

114{ return ++m_count; }

◆ operator=()

RefCounter & pool::RefCounter::operator= ( const RefCounter & )
inline

Definition at line 112 of file Database/APR/StorageSvc/StorageSvc/pool.h.

112{ return *this; }

◆ subRef()

int pool::RefCounter::subRef ( )
inline

Decrease the reference count.

Definition at line 116 of file Database/APR/StorageSvc/StorageSvc/pool.h.

116{ return --m_count; }

Member Data Documentation

◆ m_count

int pool::RefCounter::m_count = 1
private

Definition at line 107 of file Database/APR/StorageSvc/StorageSvc/pool.h.


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