Home | History | Annotate | Download | only in mac

Lines Matching full:scoped_nsprotocol

25 // scoped_nsprotocol<> has the same behavior as scoped_nsobject, but can be used
35 class scoped_nsprotocol {
37 explicit scoped_nsprotocol(NST object = nil) : object_(object) {}
39 scoped_nsprotocol(const scoped_nsprotocol<NST>& that)
43 ~scoped_nsprotocol() {
47 scoped_nsprotocol& operator=(const scoped_nsprotocol<NST>& that) {
72 void swap(scoped_nsprotocol& that) {
78 // scoped_nsprotocol<>::release() is like scoped_ptr<>::release. It is NOT a
79 // wrapper for [object_ release]. To force a scoped_nsprotocol<> to call
80 // [object_ release], use scoped_nsprotocol<>::reset().
98 void swap(scoped_nsprotocol<C>& p1, scoped_nsprotocol<C>& p2) {
103 bool operator==(C p1, const scoped_nsprotocol<C>& p2) {
108 bool operator!=(C p1, const scoped_nsprotocol<C>& p2) {
113 class scoped_nsobject : public scoped_nsprotocol<NST*> {
116 : scoped_nsprotocol<NST*>(object) {}
119 : scoped_nsprotocol<NST*>(that) {
123 scoped_nsprotocol<NST*>::operator=(that);
130 class scoped_nsobject<id> : public scoped_nsprotocol<id> {
132 explicit scoped_nsobject(id object = nil) : scoped_nsprotocol<id>(object) {}
135 : scoped_nsprotocol<id>(that) {
139 scoped_nsprotocol<id>::operator=(that);