scoped_nsobject.h | 14 // scoped_nsobject<> is patterned after scoped_ptr<>, but maintains ownership 19 // scoped_nsobject<> takes ownership of an object (in the constructor or in 21 // must own the object it gives to scoped_nsobject<>, and relinquishes an 22 // ownership claim to that object. scoped_nsobject<> does not call -retain, 25 // scoped_nsprotocol<> has the same behavior as scoped_nsobject, but can be used 28 // scoped_nsobject<> is not to be used for NSAutoreleasePools. For 31 // We check for bad uses of scoped_nsobject and NSAutoreleasePool at compile 113 class scoped_nsobject : public scoped_nsprotocol<NST*> { class in namespace:base 115 explicit scoped_nsobject(NST* object = nil) function in class:base::scoped_nsobject 118 scoped_nsobject(const scoped_nsobject<NST>& that function in class:base::scoped_nsobject 130 class scoped_nsobject<id> : public scoped_nsprotocol<id> { class in namespace:base 132 explicit scoped_nsobject(id object = nil) : scoped_nsprotocol<id>(object) {} function in class:base::scoped_nsobject 134 scoped_nsobject(const scoped_nsobject<id>& that) function in class:base::scoped_nsobject 148 class scoped_nsobject<NSAutoreleasePool> { class in namespace:base [all...] |