dReal4
|
Base class for statistics. More...
#include </home/soonhokong/work/dreal4/dreal/util/stat.h>
Public Member Functions | |
Stat (bool enabled) | |
Stat (const Stat &)=default | |
Stat (Stat &&)=default | |
Stat & | operator= (const Stat &)=delete |
Stat & | operator= (Stat &&)=delete |
bool | enabled () const |
Returns true if the logging is enabled. More... | |
Protected Member Functions | |
template<typename T > | |
void | increase (std::atomic< T > *v) |
Base class for statistics.
|
inline |
Returns true if the logging is enabled.
Normally, this is checked in the destructor of a derived class and determine whether to log or not.