agora::RefCountedObject< T > 模板类 参考
- C++
更新时间
继承自 T.
详细描述
template<class T> class agora::RefCountedObject< T >
Agora sample code for wrapping a class that needs to inherit from RefCountInterface in order to be held by agora::agora_refptr Usage: agora::agora_refptr<TypeName> ptr = new RefCountedObject<TypeName>(Arg1, Arg2,...);
构造及析构函数说明
RefCountedObject() [1/5]
inline
RefCountedObject() [2/5]
inline
explicit
agora::RefCountedObject< T >::RefCountedObject(P0 && p0)RefCountedObject() [3/5]
inline
explicit
agora::RefCountedObject< T >::RefCountedObject(const P0 & p0)RefCountedObject() [4/5]
inline
agora::RefCountedObject< T >::RefCountedObject(P0 && p0, P1 && p1, Args &&... args)~RefCountedObject()
inline
protected
virtual
virtual agora::RefCountedObject< T >::~RefCountedObject()RefCountedObject() [5/5]
private
agora::RefCountedObject< T >::RefCountedObject(const RefCountedObject< T > &)成员函数说明
AddRef()
inline
virtual
virtual void agora::RefCountedObject< T >::AddRef() constRelease()
inline
virtual
virtual agora::RefCountReleaseStatus agora::RefCountedObject< T >::Release() constHasOneRef()
inline
virtual
virtual bool agora::RefCountedObject< T >::HasOneRef() constReturn whether the reference count is one. If the reference count is used in the conventional way, a reference count of 1 implies that the current thread owns the reference and no other thread shares it. This call performs the test for a reference count of one, and performs the memory barrier needed for the owning thread to act on the object, knowing that it has exclusive access to the object.
operator=()
private
RefCountedObject& agora::RefCountedObject< T >::operator=(const RefCountedObject< T > &)类成员变量说明
ref_count_
mutable
protected
agora::RefCounter agora::RefCountedObject< T >::ref_count_