Lines Matching refs:mCLObject
20 RefPointer() noexcept : mCLObject(nullptr) {} in RefPointer()
22 explicit RefPointer(T *object) noexcept : mCLObject(object) in RefPointer()
24 if (mCLObject != nullptr) in RefPointer()
26 mCLObject->retain(); in RefPointer()
31 if (mCLObject != nullptr && mCLObject->release()) in ~RefPointer()
33 delete mCLObject; in ~RefPointer() local
37 RefPointer(std::nullptr_t) noexcept : mCLObject(nullptr) {} in RefPointer()
44 RefPointer(RefPointer &&other) noexcept : mCLObject(nullptr) { this->swap(other); } in RefPointer()
51 RefPointer(const RefPointer<T> &other) : mCLObject(other.mCLObject) in RefPointer()
53 if (mCLObject != nullptr) in RefPointer()
55 mCLObject->retain(); in RefPointer()
63 mCLObject = other.mCLObject;
64 if (mCLObject != nullptr)
66 mCLObject->retain();
72 T *operator->() const { return mCLObject; }
73 T &operator*() const { return *mCLObject; }
75 T *get() const { return mCLObject; } in get()
76 explicit operator bool() const { return mCLObject != nullptr; }
80 T *const object = mCLObject; in release()
81 mCLObject = nullptr; in release()
85 void swap(RefPointer &other) noexcept { std::swap(mCLObject, other.mCLObject); } in swap()
89 if (mCLObject != nullptr) in reset()
97 T *mCLObject;