1 2 3 4 5 6 7 8 9 10 11 12
#pragma once class network; class hooks { public: virtual void pre_fracture(const network&) {}; virtual void bond_broken(const network&, const std::pair<double, std::vector<double>>&, unsigned int) {}; virtual void post_fracture(network&) {}; // post fracture hook can be destructive };