|
VSTGUI
4.3
Graphical User Interface Framework not only for VST plugins
|
simple dependency between objects. More...
Inheritance diagram for IDependency:Classes | |
| class | DeferChanges |
Public Member Functions | |
| virtual void | addDependency (CBaseObject *obj) |
| virtual void | removeDependency (CBaseObject *obj) |
| virtual void | changed (IdStringPtr message) |
| virtual void | deferChanges (bool state) |
Protected Types | |
| typedef std::set< IdStringPtr > | DeferedChangesSet |
| typedef std::list< CBaseObject * > | DependentList |
Protected Member Functions | |
| IDependency () | |
| virtual | ~IDependency () |
Static Protected Member Functions | |
| static void | rememberObject (CBaseObject *obj) |
| static void | forgetObject (CBaseObject *obj) |
Protected Attributes | |
| int32_t | deferChangeCount |
| DeferedChangesSet | deferedChanges |
| DependentList | dependents |
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.
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlinevirtual |
add a dependent object
Here is the caller graph for this function:
|
inlinevirtual |
notify dependent objects of change with message.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
defer changes until later. can be nested. If you use this, you must make sure that all message pointers are valid the whole time.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprotected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprotected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
remove a dependent object.
Here is the caller graph for this function:
|
protected |
|
protected |
|
protected |