Agora RTC Objective-C API Reference
Refactor
|
Go to the documentation of this file.
10 #ifndef __AGORA_REF_COUNTED_OBJECT_H__
11 #define __AGORA_REF_COUNTED_OBJECT_H__
14 #if defined(__AGORA_REF_COUNTED_OBJECT_INTERNAL_H__)
15 #error AgoraRefCountedObject is deprected now, its only purpose is for API compatiable.
21 #ifndef OPTIONAL_REFCOUNTRELEASESTATUS_SPECIFIER
22 #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
23 #define OPTIONAL_REFCOUNTRELEASESTATUS_SPECIFIER agora::RefCountReleaseStatus::
25 #define OPTIONAL_REFCOUNTRELEASESTATUS_SPECIFIER
76 #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
82 #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
83 template <
class P0,
class P1,
class... Args>
85 : T(std::forward<P0>(p0),
87 std::forward<Args>(args)...),
122 #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
123 template <
typename T,
typename... types>
128 template <
typename T>
132 template <
typename T,
typename P0>
agora_refptr< T > make_refptr()
Definition: AgoraRefCountedObject.h:129
Definition: AgoraRefPtr.h:44
virtual ~RefCountedObject()
Definition: AgoraRefCountedObject.h:112
virtual bool HasOneRef() const
Definition: AgoraRefCountedObject.h:109
Definition: AgoraRefCountedObject.h:71
Definition: AgoraAtomicOps.h:21
bool HasOneRef() const
Definition: AgoraRefCountedObject.h:54
agora::RefCountReleaseStatus DecRef()
Definition: AgoraRefCountedObject.h:40
#define OPTIONAL_REFCOUNTRELEASESTATUS_SPECIFIER
Definition: AgoraRefCountedObject.h:25
static int AcquireLoad(volatile const int *i)
Definition: AgoraAtomicOps.h:52
static int Decrement(volatile int *i)
Definition: AgoraAtomicOps.h:51
void IncRef()
Definition: AgoraRefCountedObject.h:34
RefCountedObject()
Definition: AgoraRefCountedObject.h:73
virtual agora::RefCountReleaseStatus Release() const
Definition: AgoraRefCountedObject.h:93
static int Increment(volatile int *i)
Definition: AgoraAtomicOps.h:50
agora::RefCounter ref_count_
Definition: AgoraRefCountedObject.h:119
RefCountedObject(const RefCountedObject &)
RefCounter(int ref_count)
Definition: AgoraRefCountedObject.h:32
virtual void AddRef() const
Definition: AgoraRefCountedObject.h:91
RefCountedObject & operator=(const RefCountedObject &)
volatile int ref_count_
Definition: AgoraRefCountedObject.h:60
OPTIONAL_ENUM_CLASS RefCountReleaseStatus
Definition: AgoraRefPtr.h:25
Definition: AgoraRefCountedObject.h:30
RefCountedObject(const P0 &p0)
Definition: AgoraRefCountedObject.h:79