LLDB  mainline
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lldb_private::imp::shared_count Class Referenceabstract

#include <SharingPtr.h>

Inheritance diagram for lldb_private::imp::shared_count:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::imp::shared_count:
Collaboration graph
[legend]

Public Member Functions

 shared_count (long refs=0)
 
void add_shared ()
 
void release_shared ()
 
long use_count () const
 

Protected Member Functions

virtual ~shared_count ()
 

Protected Attributes

std::atomic< long > shared_owners_
 

Detailed Description

Definition at line 37 of file SharingPtr.h.

Constructor & Destructor Documentation

◆ shared_count()

lldb_private::imp::shared_count::shared_count ( long  refs = 0)
inlineexplicit

Definition at line 42 of file SharingPtr.h.

References add_shared(), and release_shared().

◆ ~shared_count()

lldb_private::imp::shared_count::~shared_count ( )
protectedvirtual

Definition at line 110 of file SharingPtr.cpp.

Member Function Documentation

◆ add_shared()

void lldb_private::imp::shared_count::add_shared ( )

Definition at line 112 of file SharingPtr.cpp.

Referenced by shared_count(), and lldb_private::SharingPtr< T >::SharingPtr().

◆ release_shared()

void lldb_private::imp::shared_count::release_shared ( )

Definition at line 120 of file SharingPtr.cpp.

Referenced by shared_count(), and lldb_private::SharingPtr< T >::~SharingPtr().

◆ use_count()

long lldb_private::imp::shared_count::use_count ( ) const
inline

Member Data Documentation

◆ shared_owners_

std::atomic<long> lldb_private::imp::shared_count::shared_owners_
protected

Definition at line 52 of file SharingPtr.h.

Referenced by use_count().


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