Lines Matching defs:const

21 //    void WorkComplete(const Result& result) { ... }
31 // static void StartNew(const WeakPtr<Controller>& controller) {
36 // Worker(const WeakPtr<Controller>& controller)
38 // void DidCompleteAsynchronousProcessing(const Result& result) {
99 bool IsValid() const;
110 explicit WeakReference(const scoped_refptr<Flag>& flag);
114 WeakReference(const WeakReference& other);
116 WeakReference& operator=(const WeakReference& other) = default;
118 bool is_valid() const;
121 scoped_refptr<const Flag> flag_;
129 WeakReference GetRef() const;
131 bool HasRefs() const { return flag_ && !flag_->HasOneRef(); }
148 WeakPtrBase(const WeakPtrBase& other) = default;
150 WeakPtrBase& operator=(const WeakPtrBase& other) = default;
159 WeakPtrBase(const WeakReference& ref, uintptr_t ptr);
227 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other) {
241 T* get() const {
245 T& operator*() const {
249 T* operator->() const {
255 explicit operator bool() const { return get() != nullptr; }
264 WeakPtr(const internal::WeakReference& ref, T* ptr)
270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
321 bool HasWeakPtrs() const {
328 WeakPtrFactory(const WeakPtrFactory&) = delete;
329 WeakPtrFactory& operator=(const WeakPtrFactory&) = delete;
351 SupportsWeakPtr(const SupportsWeakPtr&) = delete;
352 SupportsWeakPtr& operator=(const SupportsWeakPtr&) = delete;