ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
int subRef ()
 Decrease the reference count. More...
 

Private Attributes

int m_count = 1
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RefCounter() [1/2]

pool::RefCounter::RefCounter ( )
inline

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

134 {}

◆ RefCounter() [2/2]

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

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

135 { m_count = 1; }

Member Function Documentation

◆ addRef()

int pool::RefCounter::addRef ( )
inline

Increase the reference count.

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

139 { return ++m_count; }

◆ operator=()

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

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

137 { return *this; }

◆ subRef()

int pool::RefCounter::subRef ( )
inline

Decrease the reference count.

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

141 { return --m_count; }

Member Data Documentation

◆ m_count

int pool::RefCounter::m_count = 1
private

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


The documentation for this class was generated from the following file:
pool::RefCounter::m_count
int m_count
Definition: Database/APR/StorageSvc/StorageSvc/pool.h:132