… | |
… | |
209 | attachable (const attachable &src) |
209 | attachable (const attachable &src) |
210 | : flags (0), refcnt (0), self (0), cb (0), attach (src.attach) |
210 | : flags (0), refcnt (0), self (0), cb (0), attach (src.attach) |
211 | { |
211 | { |
212 | } |
212 | } |
213 | |
213 | |
214 | virtual ~attachable (); |
214 | // set a custom key to the given value, or delete it if value = 0 |
|
|
215 | void set_key (const char *key, const char *value = 0); |
215 | |
216 | |
216 | attachable &operator =(const attachable &src); |
217 | attachable &operator =(const attachable &src); |
217 | |
218 | |
218 | // used to _quickly_ device wether to shortcut the evaluation |
219 | // used to _quickly_ device wether to shortcut the evaluation |
219 | bool should_invoke (event_type event) |
220 | bool should_invoke (event_type event) |
… | |
… | |
230 | // do the real refcount checking work |
231 | // do the real refcount checking work |
231 | void do_check (); |
232 | void do_check (); |
232 | |
233 | |
233 | // the method that does the real destroy work |
234 | // the method that does the real destroy work |
234 | virtual void do_destroy (); |
235 | virtual void do_destroy (); |
|
|
236 | |
|
|
237 | // destructor is protected, should not be called by anybody |
|
|
238 | virtual ~attachable (); |
235 | }; |
239 | }; |
236 | |
240 | |
237 | // the global object is a pseudo object that cares for the global events |
241 | // the global object is a pseudo object that cares for the global events |
238 | struct global : attachable |
242 | struct global : attachable |
239 | { |
243 | { |