#include <nnguardobject.h>
Public Member Functions | |
| GuardObject () | |
| Create a new guard object. | |
| GuardObject & | operator+= (Callback *p) |
| Add a callback to the guard object. | |
| GuardObject & | operator-= (Callback *p) |
| Remove a callback from the guard object. | |
Classes | |
| class | Callback |
| The callback class for the guard object. More... | |
Definition at line 34 of file nnguardobject.h.
| NewNet::GuardObject::GuardObject | ( | ) | [inline] |
Create a new guard object.
Definition at line 55 of file nnguardobject.h.
| GuardObject& NewNet::GuardObject::operator+= | ( | Callback * | p | ) | [inline] |
Add a callback to the guard object so the callback will be invoked when the guard object is deleted. Note: this stores a regular pointer and not a RefPtr.
Definition at line 72 of file nnguardobject.h.
| GuardObject& NewNet::GuardObject::operator-= | ( | Callback * | p | ) | [inline] |
Remove a callback from the guard object. It will no longer get invoked when the guard object is deleted. Note that since the guard object stores a regular pointer to the callback, it will not get deleted automatically.
Definition at line 83 of file nnguardobject.h.
1.5.1