![]() |
MOS Source Code
|
#include <shared_ptr.hpp>
Public Member Functions | |
__shared_ptr_core (T *ptr, size_t own, size_t weak) | |
~__shared_ptr_core () | |
void | _dec_weak () |
void | _inc_weak () |
void | _inc_use () |
void | _dec_use () |
bool | _can_delete () const |
size_t | _use_count () const |
size_t | _weak_count () const |
Public Attributes | |
T * | _ptr |
Private Attributes | |
size_t | _n_own |
size_t | _n_weak |
Friends | |
bool | operator== (const __shared_ptr_core &lhs, const __shared_ptr_core &rhs) |
Additional Inherited Members | |
![]() | |
static constexpr mos::string_view | type_name |
Definition at line 24 of file shared_ptr.hpp.
|
inlineexplicit |
Definition at line 26 of file shared_ptr.hpp.
Referenced by operator==.
|
inline |
Definition at line 27 of file shared_ptr.hpp.
|
inline |
Definition at line 33 of file shared_ptr.hpp.
|
inline |
Definition at line 34 of file shared_ptr.hpp.
|
inline |
Definition at line 35 of file shared_ptr.hpp.
|
inline |
Definition at line 36 of file shared_ptr.hpp.
|
inline |
Definition at line 39 of file shared_ptr.hpp.
|
inline |
Definition at line 44 of file shared_ptr.hpp.
|
inline |
Definition at line 49 of file shared_ptr.hpp.
|
friend |
Definition at line 54 of file shared_ptr.hpp.
T* _ptr |
Definition at line 60 of file shared_ptr.hpp.
Referenced by __shared_ptr_core(), operator==, and ~__shared_ptr_core().
|
private |
Definition at line 63 of file shared_ptr.hpp.
Referenced by __shared_ptr_core(), _can_delete(), _dec_use(), _inc_use(), and _use_count().
|
private |
Definition at line 64 of file shared_ptr.hpp.
Referenced by __shared_ptr_core(), _dec_weak(), _inc_weak(), and _weak_count().