IDependency Class Reference
[Version 4.0]
simple dependency between objects.
More...
List of all members.
Detailed Description
simple dependency between objects.
You can inject this implementation into CBaseObjects whenever you need other CBaseObjects to be informed about changes to that class instance. Note that you need to handle recursions yourself and that no reference counting is done and that you must make sure that the dependent objects are alife while added as dependent.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
void addDependency |
( |
CBaseObject * |
obj |
) |
[inline, virtual] |
notify dependent objects of change with message.
void deferChanges |
( |
bool |
state |
) |
[inline, virtual] |
defer changes until later. can be nested. If you use this, you must make sure that all message pointers are valid the whole time.
static void forgetObject |
( |
CBaseObject * |
obj |
) |
[inline, static, protected] |
static void rememberObject |
( |
CBaseObject * |
obj |
) |
[inline, static, protected] |
void removeDependency |
( |
CBaseObject * |
obj |
) |
[inline, virtual] |
remove a dependent object.
Member Data Documentation
The documentation for this class was generated from the following file: