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

#include <pool.h>

Inheritance diagram for RefCounter:
Collaboration diagram for RefCounter:

Public Member Functions

 RefCounter ()
 RefCounter (const RefCounter &)
RefCounter & operator= (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 45 of file Database/APR/StorageSvc/StorageSvc/pool.h.

Constructor & Destructor Documentation

◆ RefCounter() [1/2]

RefCounter::RefCounter ( )
inline

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

49{}

◆ RefCounter() [2/2]

RefCounter::RefCounter ( const RefCounter & )
inline

Member Function Documentation

◆ addRef()

int RefCounter::addRef ( )
inline

Increase the reference count.

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

54{ return ++m_count; }

◆ operator=()

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

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

52{ return *this; }

◆ subRef()

int RefCounter::subRef ( )
inline

Decrease the reference count.

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

56{ return --m_count; }

Member Data Documentation

◆ m_count

int RefCounter::m_count = 1
private

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


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