#include <moduleGuard.h>
Public Types | |
enum | TGuardOptions { NO_INDENT = 1, SHOW_TITLE = 2, SYNC_BOUNDS = 4 } |
Public Member Functions | |
moduleGuard (TModule _guardedModule, const managedObject &X, TOption _options=0) throw () | |
moduleGuard (TModule _guardedModule, const managedObject &X, const char *logEntry, TOption _options=0) throw () | |
~moduleGuard () throw () | |
void | Shutdown (msgType msg=NO_MSG, const char *logEntry=NULL) throw () |
void | InitBounds (double _lower=-InfFloat, double _upper=InfFloat) const throw () |
void | SetBounds (double _lower, double _upper) const throw (ERRejected) |
void | SetLowerBound (double _lower) const throw (ERRejected) |
void | SetUpperBound (double _upper) const throw (ERRejected) |
double | LowerBound () const throw () |
double | UpperBound () const throw () |
void | InitProgressCounter (double _maxProgress, double _step=1.0) throw () |
void | SetProgressMax (double _maxProgress) throw () |
void | SetProgressCounter (double currentProgress) throw () |
void | SetProgressNext (double step) throw () |
void | ProgressStep () throw () |
void | ProgressStep (double step) throw () |
void | Trace (double step=0) throw () |
void | Trace (managedObject &X, double step=0) throw () |
This initializes the code instrumentation for a specified source code module, memorizes certain preconditions, and automatically starts and stops the associated timer.
Guard objects are instanciated as local variables in the context of a mathematical method. By that, the destructor code is executed, even if the guard's context is left by an exception. This is used to reduce the overhead of code instrumentation. In the basic use case, the mathematical method only includes a constructor call and the listOfModules[] an entry to describe the mathematical method.
|
Combinable constructor options.
|
|
Start a source code module guard.
|
|
Start a source code module guard.
|
|
Destroy a source code module guard. This executes Shutdown() if this method has not been called before explicitly. |
|
Stop a source code module guard, in occasion, with a log message.
|