Home | History | Annotate | Download | only in wrl

Lines Matching refs:ptr_

23                 T* ptr_;
31 return reinterpret_cast<IInspectable**>(ptr_->ReleaseAndGetAddressOf());
37 return reinterpret_cast<IUnknown**>(ptr_->ReleaseAndGetAddressOf());
44 ComPtrRefBase<T>::ptr_ = ptr;
48 return reinterpret_cast<void**>(ComPtrRefBase<T>::ptr_->ReleaseAndGetAddressOf());
52 *ComPtrRefBase<T>::ptr_ = nullptr;
53 return ComPtrRefBase<T>::ptr_;
57 return ComPtrRefBase<T>::ptr_->ReleaseAndGetAddressOf();
61 return ComPtrRefBase<T>::ptr_->Get();
65 return ComPtrRefBase<T>::ptr_->GetAddressOf();
69 return ComPtrRefBase<T>::ptr_->ReleaseAndGetAddressOf();
79 ComPtr() throw() : ptr_(nullptr) {}
80 ComPtr(decltype(nullptr)) throw() : ptr_(nullptr) {}
82 template<class U> ComPtr(U *other) throw() : ptr_(other) {
86 ComPtr(const ComPtr &other) throw() : ptr_(other.ptr_) {
91 ComPtr(const ComPtr<U> &other) throw() : ptr_(other.ptr_) {
95 ComPtr(ComPtr &&other) throw() : ptr_(nullptr) {
101 ComPtr(ComPtr<U>&& other) throw() : ptr_(other.ptr_) {
102 other.ptr_ = nullptr;
115 if (ptr_ != other) {
117 ptr_ = other;
125 if (ptr_ != other) {
127 ptr_ = other;
134 if (ptr_ != other.ptr_)
157 InterfaceType *tmp = ptr_;
158 ptr_ = r.ptr_;
159 r.ptr_ = tmp;
163 InterfaceType *tmp = ptr_;
164 ptr_ = r.ptr_;
165 r.ptr_ = tmp;
173 return ptr_;
177 return ptr_;
189 return &ptr_;
193 return &ptr_;
198 return &ptr_;
202 T* ptr = ptr_;
203 ptr_ = nullptr;
208 if (ptr_ != other) {
210 ptr_ = other;
221 *ptr = ptr_;
226 return ptr_->QueryInterface(riid, ptr);
231 return ptr_->QueryInterface(__uuidof(U), reinterpret_cast<void**>(ptr));
236 return ptr_->QueryInterface(__uuidof(U), p);
241 return ptr_->QueryInterface(__uuidof(U), reinterpret_cast<void**>(p->ReleaseAndGetAddressOf()));
245 return ptr_->QueryInterface(riid, reinterpret_cast<void**>(p->ReleaseAndGetAddressOf()));
250 return ::Microsoft::WRL::AsWeak(ptr_, pWeakRef);
254 InterfaceType *ptr_;
257 if(ptr_)
258 ptr_->AddRef();
262 InterfaceType *tmp = ptr_;
265 ptr_ = nullptr;