imp
imp copied to clipboard
Add "destructors" associated with decorators
setup_particle can register a destructor object with the Model that gets called when the particle is removed from the model.
Probably should just require a teardown_particle(Model *m, ParticleIndex pi) method in decorators and automatically use that. Maybe IMP_DECORATOR_2 macro.
Provide new Decorator infrastructure that avoids the macros and cleaner names for things.