Home | History | Annotate | Download | only in mac

Lines Matching defs:NST

34 template<typename NST>
37 explicit scoped_nsprotocol(NST object = nil) : object_(object) {}
39 scoped_nsprotocol(const scoped_nsprotocol<NST>& that)
47 scoped_nsprotocol& operator=(const scoped_nsprotocol<NST>& that) {
52 void reset(NST object = nil) {
61 bool operator==(NST that) const { return object_ == that; }
62 bool operator!=(NST that) const { return object_ != that; }
64 operator NST() const {
68 NST get() const {
73 NST temp = that.object_;
81 NST release() WARN_UNUSED_RESULT {
82 NST temp = object_;
88 NST autorelease() {
93 NST object_;
112 template<typename NST>
113 class scoped_nsobject : public scoped_nsprotocol<NST*> {
115 explicit scoped_nsobject(NST* object = nil)
116 : scoped_nsprotocol<NST*>(object) {}
118 scoped_nsobject(const scoped_nsobject<NST>& that)
119 : scoped_nsprotocol<NST*>(that) {
122 scoped_nsobject& operator=(const scoped_nsobject<NST>& that) {
123 scoped_nsprotocol<NST*>::operator=(that);