OpendTect  6.6
Public Member Functions | Private Attributes | List of all members
ReferenceCounter Class Reference

Public Member Functions

int count () const
 
void ref ()
 
bool refIfReffed ()
 Don't use in production, for debugging. More...
 
bool unRef ()
 
void unRefDontInvalidate ()
 Will allow it to go to zero. More...
 

Private Attributes

Threads::Atomic< int > count_
 

Detailed Description

Actual implementation of the reference counting. Normally not used by application developers. Use mRefCountImpl marcro instead.

<>

Member Function Documentation

◆ count()

int ReferenceCounter::count ( ) const
inline

◆ ref()

void ReferenceCounter::ref ( )
inline

◆ refIfReffed()

bool ReferenceCounter::refIfReffed ( )
inline

Don't use in production, for debugging.

◆ unRef()

bool ReferenceCounter::unRef ( )
inline

Unref to zero will set it to an deleted state, and return true.

◆ unRefDontInvalidate()

void ReferenceCounter::unRefDontInvalidate ( )
inline

Will allow it to go to zero.

Member Data Documentation

◆ count_

Threads::Atomic< int > ReferenceCounter::count_
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022