interrupt.hpp
Go to the documentation of this file.
1 #ifndef STAN_CALLBACKS_INTERRUPT_HPP
2 #define STAN_CALLBACKS_INTERRUPT_HPP
3 
4 namespace stan {
5  namespace callbacks {
6 
7  /**
8  * <code>interrupt</code> is a base class defining the interface
9  * for Stan interrupt callbacks.
10  *
11  * The interrupt is called from within Stan algorithms to allow
12  * for the interfaces to handle interrupt signals (ctrl-c).
13  */
14  class interrupt {
15  public:
16  /**
17  * Callback function.
18  *
19  * This function is called by the algorithms allowing the interfaces
20  * to break when necessary.
21  */
22  virtual void operator()() {
23  }
24 
25  /**
26  * Virtual destructor.
27  */
28  virtual ~interrupt() {}
29  };
30 
31  }
32 }
33 #endif
def callbacks(model_name, group, tensorboard=True)
Definition: regression.py:123
virtual void operator()()
Definition: interrupt.hpp:22