| 
    hep-mc
    0.8
    
   | 
 
Default callback type used by all integration algorithms.
Public Types | |
| using | numeric_type = typename Checkpoint::result_type::numeric_type | 
Public Member Functions | |
| callback (callback_mode mode=callback_mode::verbose, std::string const &filename="", numeric_type target_rel_err=numeric_type()) | |
| bool | operator() (Checkpoint const &chkpt) | 
| void | mode (callback_mode mode) | 
| callback_mode | mode () const | 
| using hep::callback< Checkpoint >::numeric_type = typename Checkpoint::result_type::numeric_type | 
Numeric type used by the checkpoint.
      
  | 
  inline | 
Constructor. The parameter mode determines the behaviour of operator()(). If mode is callback_mode::verbose_and_write_chkpt, then filename is the file the checkpoint is written to. If target_rel_err is strictly larger than zero, the integration is stopped if the accumulated result has a relative precision which is better than target_rel_err. 
      
  | 
  inline | 
Sets the mode of this callback function.
      
  | 
  inline | 
Returns the mode of this callback function.
      
  | 
  inline | 
Callback function whose behaviour is determined by mode given in the constructor. This function always returns true.