Base class for termination detection. More...
Public Member Functions | |
| virtual void | operator() (void)=0 |
| Starts this terminator if required. | |
| template<typename Notifier > | |
| void | set_notifier (Notifier &¬ifier) |
| Sets the function to be called when termination is detected. | |
| virtual size_type | iterations (void) const noexcept=0 |
| Returns the number of times the terminator has iterated. | |
Public Types | |
| using | size_type = std::size_t |
Protected Member Functions | |
| void | call_notifier (void) const |
| Calls the registered notifier when the terminator has finished. | |
Base class for termination detection.
All termination detectors must inherit from this class.
1.8.13