Lines Matching defs:object
45 * Shares the underlying object by calling CFRetain(), so that both the argument and the newly
51 * Move the underlying object from the argument to the newly created sk_cfp. Afterwards only
52 * the new sk_cfp will have a reference to the object, and the argument will point to null.
58 * Adopt the bare object into the newly created sk_cfp.
66 * Calls CFRelease() on the underlying object pointer.
76 * Shares the underlying object referenced by the argument by calling CFRetain() on it. If this
77 * sk_cfp previously had a reference to an object (i.e. not null) it will call CFRelease()
78 * on that object.
88 * Move the underlying object from the argument to the sk_cfp. If the sk_cfp
89 * previously held a reference to another object, CFRelease() will be called on that object.
106 * Adopt the new object, and call CFRelease() on any previously held object (if not null).
109 void reset(T object = nil) {
114 fObject = object;
119 * Shares the new object by calling CFRetain() on it. If this sk_cfp previously had a
120 * reference to an object (i.e. not null) it will call CFRelease() on that object.
122 void retain(T object) {
123 if (fObject != object) {
124 this->reset(SkCFSafeRetain(object));
129 * Return the original object, and set the internal object to nullptr.
130 * The caller must assume ownership of the object, and manage its reference count directly.
170 * Returns a sk_cfp wrapping the provided object AND calls retain on it (if not null).
173 * object, effectively "adopting" it.