… | |
… | |
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 (); |
|
|
215 | |
|
|
216 | // set a custom key to the given value, or delete it if value = 0 |
214 | // set a custom key to the given value, or delete it if value = 0 |
217 | void set_key (const char *key, const char *value = 0); |
215 | void set_key (const char *key, const char *value = 0); |
218 | |
216 | |
219 | attachable &operator =(const attachable &src); |
217 | attachable &operator =(const attachable &src); |
220 | |
218 | |
… | |
… | |
233 | // do the real refcount checking work |
231 | // do the real refcount checking work |
234 | void do_check (); |
232 | void do_check (); |
235 | |
233 | |
236 | // the method that does the real destroy work |
234 | // the method that does the real destroy work |
237 | virtual void do_destroy (); |
235 | virtual void do_destroy (); |
|
|
236 | |
|
|
237 | // destructor is protected, should not be called by anybody |
|
|
238 | virtual ~attachable (); |
238 | }; |
239 | }; |
239 | |
240 | |
240 | // 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 |
241 | struct global : attachable |
242 | struct global : attachable |
242 | { |
243 | { |