Lines Matching defs:const
14 Object(const Object &) : m_refCount(0) { print_copy_created(this); }
17 int getRefCount() const { return m_refCount; };
20 void incRef() const { ++m_refCount; }
28 void decRef(bool dealloc = true) const {
36 virtual std::string toString() const = 0;
76 ref(const ref &r) : m_ptr(r.m_ptr) {
112 ref& operator=(const ref& r) {
140 bool operator==(const ref &r) const { return m_ptr == r.m_ptr; }
143 bool operator!=(const ref &r) const { return m_ptr != r.m_ptr; }
146 bool operator==(const T* ptr) const { return m_ptr == ptr; }
149 bool operator!=(const T* ptr) const { return m_ptr != ptr; }
155 const T* operator->() const { return m_ptr; }
160 /// Return a const C++ reference to the referenced object
161 const T& operator*() const { return *m_ptr; }
166 /// Return a const pointer to the referenced object
170 const T* get_ptr() const { return m_ptr; }