Defined in runner.hpp.
This class exists to collect some values related to reporting in its derived classes. These values are:
|
(Note that these are not member symbols.)
|
| static std::chrono::nanoseconds | delta (std::chrono::high_resolution_clock::time_point const &t) |
| | The time between a given point and now.
|
| |
◆ Reporter()
Default construct a Reporter object such that the following hold:
◆ emit_divider()
◆ init()
This function puts a Reporter object back into the same state as if it had been newly default constructed.
- Returns
- A reference to
*this.
- Note
- This function is not thread-safe.
- See also
- Reporter()
◆ last_report()
Returns the time point of the last report, as set by one of:
- Returns
- A time_point.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is thread-safe.
◆ report()
◆ report_divider() [1/2]
This function gets the current value of the divider string for reporting (set via report_divider(std::string const&)).
- Returns
- A const reference to the divider string.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is thread-safe.
◆ report_divider() [2/2]
This function sets the return value of report_divider() to (a copy of) the argument val.
- Parameters
-
| val | the new value of the report divider. |
- Returns
- A reference to
this.
- Note
- This function is not thread-safe.
◆ report_every() [1/3]
- Returns
- The number of nanoseconds between reports.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is thread-safe.
- Warning
- This alias is deprecated and will be removed from
libsemigroups in v4.
◆ report_every() [2/3]
This function can be used to specify at run time the minimum elapsed time between two calls to report() that will return true. If report() returns true at time s, then report() will only return true again after at least time s + t has elapsed.
- Parameters
-
| val | the amount of time (in nanoseconds) between reports. |
- Returns
- A reference to
this.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is not thread-safe.
- See also
- report_every(Time)
- Warning
- This alias is deprecated and will be removed from
libsemigroups in v4.
◆ report_every() [3/3]
This function converts its argument to std::chrono::nanoseconds and calls report_every(std::chrono::nanoseconds).
- Template Parameters
-
| Time | the type of the argument (should be std::chrono::something). |
- Parameters
-
| t | the amount of time (in Time) between reports. |
- Returns
- A reference to
this.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is not thread-safe.
- Warning
- This alias is deprecated and will be removed from
libsemigroups in v4.
◆ report_prefix() [1/2]
This function gets the current value of the prefix string for reporting (set via report_prefix(std::string const&)), which is typically the name of the algorithm being run at the outmost level.
- Returns
- A const reference to the prefix string.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is thread-safe.
◆ report_prefix() [2/2]
This function sets the return value of report_prefix() to (a copy of) the argument val. Typically this prefix should be the name of the algorithm being run at the outmost level.
- Parameters
-
| val | the new value of the report prefix. |
- Returns
- A reference to
this.
- Note
- This function is not thread-safe.
◆ reset_last_report()
| Reporter const & reset_last_report |
( |
| ) |
const |
|
inline |
Returns the time point of the last report, as set by one of:
- Returns
- A const reference to
this.
- Note
- This function is thread-safe.
◆ reset_start_time()
| Reporter const & reset_start_time |
( |
| ) |
const |
|
inline |
- Returns
- A const reference to
this.
- Note
- This function is not thread-safe.
◆ start_time()
This is the time point at which reset_start_time() was last called, which is also the time of construction of a Reporter instance if reset_start_time() is not explicitly called.
- Returns
- The time point representing the start time.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
- Note
- This function is thread-safe.
◆ delta()
The time between a given point and now.
- Parameters
-
- Returns
- The nanoseconds between the time point
t and now.
The documentation for this class was generated from the following file:
- /Users/jdm3/libsemigroups/include/libsemigroups/runner.hpp