Public Member Functions | Protected Member Functions | List of all members
refCount Class Reference

Reference counter for various OpenFOAM components. More...

Inheritance diagram for refCount:
Inheritance graph
[legend]

Public Member Functions

int count () const
 Return the current reference count. More...
 
bool unique () const
 Return true if the reference count is zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 

Protected Member Functions

 refCount ()
 Construct null initializing count to 0. More...
 

Detailed Description

Reference counter for various OpenFOAM components.

See also
Foam::tmp Foam::token::compound

Definition at line 49 of file refCount.H.

Constructor & Destructor Documentation

◆ refCount()

refCount ( )
inlineprotected

Construct null initializing count to 0.

Definition at line 70 of file refCount.H.

Member Function Documentation

◆ count()

int count ( ) const
inline

Return the current reference count.

Definition at line 81 of file refCount.H.

◆ unique()

bool unique ( ) const
inline

Return true if the reference count is zero.

Definition at line 87 of file refCount.H.

◆ operator++() [1/2]

void operator++ ( )
inline

Increment the reference count.

Definition at line 96 of file refCount.H.

◆ operator++() [2/2]

void operator++ ( int  )
inline

Increment the reference count.

Definition at line 102 of file refCount.H.

◆ operator--() [1/2]

void operator-- ( )
inline

Decrement the reference count.

Definition at line 108 of file refCount.H.

◆ operator--() [2/2]

void operator-- ( int  )
inline

Decrement the reference count.

Definition at line 114 of file refCount.H.


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