Home
last modified time | relevance | path

Searched refs:refs_ (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/c_utils/base/include/
H A Drefbase.h603 RefCounter *refs_ = nullptr; // Pointer to the corresponding reference member in OHOS::RefBase
700 return refs_; in GetRefPtr()
728 return refs_; in operator T *()
738 return refs_ != nullptr; in operator bool()
750 return *refs_; in operator *()
761 return refs_; in operator ->()
872 T *refs_ = nullptr; // Raw pointer to the specific managed object member in OHOS::sptr
889 refs_ = other; in ForceSetRefPtr()
895 refs_ = nullptr; in sptr()
901 refs_ in sptr()
1328 WeakRefCounter *refs_ = nullptr; // Pointer to the corresponding WeakRefCounter object global() member in OHOS::wptr
[all...]
/commonlibrary/c_utils/base/src/
H A Drefbase.cpp417 RefBase::RefBase() : refs_(new RefCounter()) in RefBase()
419 refs_->IncRefCount(); in RefBase()
420 refs_->SetCallback([this] { this->RefPtrCallback(); }); in RefBase()
422 refs_->SetCanPromote([this] { return this->CanPromote(); }); in RefBase()
428 refs_ = new (std::nothrow) RefCounter(); in RefBase()
429 if (refs_ != nullptr) { in RefBase()
430 refs_->IncRefCount(); in RefBase()
431 refs_->SetCallback([this] { this->RefPtrCallback(); }); in RefBase()
433 refs_->SetCanPromote([this] { return this->CanPromote(); }); in RefBase()
458 if (refs_ ! in operator =()
[all...]

Completed in 3 milliseconds