Discrete simulation events in C++.