Rebel Fork Framework
Urho3D::Detail::WeakPtrRefCountBase Class Reference

Base class for weak pointer reference counting. More...

#include <Urho3D/Container/Ptr.h>

Inheritance diagram for Urho3D::Detail::WeakPtrRefCountBase:
Urho3D::Detail::WeakPtrBase< InterfaceType, InterfaceType, true > Urho3D::Detail::WeakPtrBase< InterfaceType, RefCountedType, false >

Public Member Functions

int Refs () const noexcept
 Return the object's reference count, or 0 if null pointer or if object has expired.
int WeakRefs () const noexcept
 Return the object's weak reference count.
bool Expired () const noexcept
 Return whether the object has expired. If null pointer, always return true.
RefCount * RefCountPtr () const noexcept
 Return pointer to the RefCount structure.

Protected Member Functions

 WeakPtrRefCountBase (const WeakPtrRefCountBase &rhs) noexcept
 WeakPtrRefCountBase (WeakPtrRefCountBase &&rhs) noexcept
 WeakPtrRefCountBase (RefCount *refCount) noexcept
void Swap (WeakPtrRefCountBase &rhs) noexcept
void AddRef () noexcept
void ReleaseRef () noexcept

Private Attributes

RefCount * refCount_ {}

Detailed Description

Base class for weak pointer reference counting.


The documentation for this class was generated from the following file:
  • Urho3D/Container/Ptr.h