Chromium Embedded Framework (CEF)  115.2.0+g096e3eb+chromium-115.0.5790.13
CefRefCount Class Reference

Class that implements atomic reference counting. More...

#include "include/cef_base.h"

Public Member Functions

 CefRefCount ()=default
 
 CefRefCount (const CefRefCount &)=delete
 
CefRefCountoperator= (const CefRefCount &)=delete
 
void AddRef () const
 Increment the reference count. More...
 
bool Release () const
 Decrement the reference count. More...
 
bool HasOneRef () const
 Returns true if the reference count is 1. More...
 
bool HasAtLeastOneRef () const
 Returns true if the reference count is at least 1. More...
 

Detailed Description

Class that implements atomic reference counting.

Constructor & Destructor Documentation

◆ CefRefCount() [1/2]

CefRefCount::CefRefCount ( )
default

◆ CefRefCount() [2/2]

CefRefCount::CefRefCount ( const CefRefCount )
delete

Member Function Documentation

◆ AddRef()

void CefRefCount::AddRef ( ) const
inline

Increment the reference count.

◆ HasAtLeastOneRef()

bool CefRefCount::HasAtLeastOneRef ( ) const
inline

Returns true if the reference count is at least 1.

◆ HasOneRef()

bool CefRefCount::HasOneRef ( ) const
inline

Returns true if the reference count is 1.

◆ operator=()

CefRefCount& CefRefCount::operator= ( const CefRefCount )
delete

◆ Release()

bool CefRefCount::Release ( ) const
inline

Decrement the reference count.

Returns true if the reference count is 0.


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