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

Public Member Functions

std::int32_t 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...
 

Static Public Member Functions

static std::int32_t cInvalidRefCount ()
 

Private Attributes

Threads::Atomic< std::int32_t > count_
 

Detailed Description

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

<>

Member Function Documentation

◆ cInvalidRefCount()

static std::int32_t ReferenceCounter::cInvalidRefCount ( )
inlinestatic

◆ count()

std::int32_t 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< std::int32_t > ReferenceCounter::count_
private

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