OpendTect-6_4  6.4
Public Member Functions | Private Attributes | List of all members
ReferenceCounter Class Reference

Public Member Functions

void ref ()
 
bool unRef ()
 
void unRefDontInvalidate ()
 Will allow it to go to zero. More...
 
int count () const
 
bool refIfReffed ()
 Don't use in production, for debugging. 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

int ReferenceCounter::count ( ) const
inline
void ReferenceCounter::ref ( )
inline
bool ReferenceCounter::refIfReffed ( )
inline

Don't use in production, for debugging.

bool ReferenceCounter::unRef ( )
inline

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

void ReferenceCounter::unRefDontInvalidate ( )
inline

Will allow it to go to zero.

Member Data Documentation

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

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