Kiwano Engine v1.3.x
kiwano::RefBasePtr< _Ty, _RefPolicy > 模板类 参考

引用计数智能指针 更多...

#include <RefBasePtr.hpp>

类 kiwano::RefBasePtr< _Ty, _RefPolicy > 继承关系图:

Public 类型

using value_type = _Ty
 
using pointer_type = _Ty *
 
using const_pointer_type = const _Ty *
 
using reference_type = _Ty &
 
using const_reference_type = const _Ty &
 

Public 成员函数

 RefBasePtr (std::nullptr_t) noexcept
 
 RefBasePtr (pointer_type p)
 
 RefBasePtr (const RefBasePtr &other)
 
 RefBasePtr (RefBasePtr &&other) noexcept
 
template<typename _UTy , typename std::enable_if< std::is_convertible< _UTy *, _Ty * >::value, int >::type = 0>
 RefBasePtr (const RefBasePtr< _UTy, _RefPolicy > &other)
 
pointer_type Get () const noexcept
 
pointer_type * GetAddressOfAndRelease ()
 
void Reset (pointer_type ptr=nullptr)
 
void Swap (RefBasePtr &other) noexcept
 
pointer_type operator-> ()
 
const_pointer_type operator-> () const
 
reference_type operator* ()
 
const_reference_type operator* () const
 
pointer_type * operator& ()
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
RefBasePtroperator= (const RefBasePtr &other)
 
RefBasePtroperator= (RefBasePtr &&other) noexcept
 
RefBasePtroperator= (pointer_type p)
 
template<typename _UTy , typename std::enable_if< std::is_convertible< _UTy *, _Ty * >::value, int >::type = 0>
RefBasePtroperator= (const RefBasePtr< _UTy, _RefPolicy > &other)
 
RefBasePtroperator= (std::nullptr_t)
 

详细描述

template<typename _Ty, typename _RefPolicy>
class kiwano::RefBasePtr< _Ty, _RefPolicy >

引用计数智能指针