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 97 of file Database/APR/StorageSvc/StorageSvc/pool.h.

Constructor & Destructor Documentation

◆ RefCounter() [1/2]

pool::RefCounter::RefCounter ( )
inline

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

101{}

◆ 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 106 of file Database/APR/StorageSvc/StorageSvc/pool.h.

106{ return ++m_count; }

◆ operator=()

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

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

104{ return *this; }

◆ subRef()

int pool::RefCounter::subRef ( )
inline

Decrease the reference count.

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

108{ return --m_count; }

Member Data Documentation

◆ m_count

int pool::RefCounter::m_count = 1
private

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


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