cross-platform / dspatch

The Refreshingly Simple Cross-Platform C++ Dataflow / Patching / Pipelining / Graph Processing / Stream Processing / Reactive Programming Framework
https://flowbasedprogramming.com/
BSD 2-Clause "Simplified" License
216 stars 44 forks source link

Removal of component and disconnection responsibility ? #33

Closed nyue closed 3 years ago

nyue commented 3 years ago

When a call is made to RemoveComponent(), do I need to call DisconnectComponent() ?

If I do, should I call it before or after RemoveComponent() ?

Cheers

MarcusTomlinson commented 3 years ago

RemoveComponent() takes care of the DisconnectComponent() call for you. In other words, removing a component removes all connections to it as well.