Home | History | Annotate | Download | only in base

Lines Matching defs:scoped_refptr

25 //     scoped_refptr<MyFoo> foo = new MyFoo();
31 // scoped_refptr<MyFoo> foo = new MyFoo();
39 // The above examples show how scoped_refptr<T> acts like a pointer to T.
40 // Given two scoped_refptr<T> classes, it is also possible to exchange
44 // scoped_refptr<MyFoo> a = new MyFoo();
45 // scoped_refptr<MyFoo> b;
55 // scoped_refptr<MyFoo> a = new MyFoo();
56 // scoped_refptr<MyFoo> b;
71 class scoped_refptr {
73 scoped_refptr() : ptr_(NULL) {
76 scoped_refptr(T* p) : ptr_(p) {
81 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
87 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
92 ~scoped_refptr() {
112 scoped_refptr<T>& operator=(T* p) {
122 scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
127 scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
137 void swap(scoped_refptr<T>& r) {