接口参考

ref_counted.h · C++ API

按同一接口文件归组浏览,展开条目查看声明、使用说明和版本边界。

阅读相关开发指南 →

这里保留接口声明及来源。逐项运行验证范围以条目记录为准;源文件中的内部实现候选不代表免费 SDK 的交付承诺。

include/kui/core/ref_counted.h
adoptRef
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
template <typename T> inline RefPtr<T> adoptRef(T* raw)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:129

反馈此接口问题 →
RefCounted::deref
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
void deref() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:36

反馈此接口问题 →
RefCounted::ref
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
void ref() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:31

反馈此接口问题 →
RefCounted::refCount
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
i32 refCount() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:43

反馈此接口问题 →
RefPtr::~RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
~RefPtr()

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:84

反馈此接口问题 →
RefPtr::get
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
T* get() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:106

反馈此接口问题 →
RefPtr::operator bool
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
explicit operator bool() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:110

反馈此接口问题 →
RefPtr::operator->
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
T* operator->() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:107

反馈此接口问题 →
RefPtr::operator!=
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
bool operator!=(const RefPtr& o) const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:121

反馈此接口问题 →
RefPtr::operator!=
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
bool operator!=(std::nullptr_t) const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:123

反馈此接口问题 →
RefPtr::operator*
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
T& operator*() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:108

反馈此接口问题 →
RefPtr::operator=
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr& operator=(const RefPtr& other)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:88

反馈此接口问题 →
RefPtr::operator=
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr& operator=(RefPtr&& other) noexcept

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:94

反馈此接口问题 →
RefPtr::operator=
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr& operator=(std::nullptr_t)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:100

反馈此接口问题 →
RefPtr::operator==
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
bool operator==(const RefPtr& o) const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:120

反馈此接口问题 →
RefPtr::operator==
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
bool operator==(std::nullptr_t) const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:122

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
explicit RefPtr(T* raw, bool addRef = true) : ptr_(raw)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:62

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr(const RefPtr& other) : ptr_(other.ptr_)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:66

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr() : ptr_(nullptr)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:59

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr(RefPtr&& other) noexcept : ptr_(other.ptr_)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:70

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
RefPtr(std::nullptr_t) : ptr_(nullptr)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:60

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
template <typename U, typename = std::enable_if_t<std::is_convertible_v<U*, T*>>> RefPtr(RefPtr<U>&& other) noexcept : ptr_(other.get())

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:79

反馈此接口问题 →
RefPtr::RefPtr
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
template <typename U, typename = std::enable_if_t<std::is_convertible_v<U*, T*>>> RefPtr(const RefPtr<U>& other) : ptr_(other.get())

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:74

反馈此接口问题 →
RefPtr::release
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
T* release()

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:112

反馈此接口问题 →
RefPtr::swap
待核对3.61.7C++

core 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

ref_counted.h
void swap(RefPtr& other) noexcept

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/core/ref_counted.h:118

反馈此接口问题 →
浏览同类接口 →