|
Frobby 0.10.0
|
#include <DebugStrategy.h>


Public Member Functions | |
| DebugStrategy (SliceStrategy *strategy, FILE *out) | |
| virtual void | run (const Ideal &ideal) |
| bool | processSlice (TaskEngine &tasks, unique_ptr< Slice > slice) |
| virtual void | setUseIndependence (bool use) |
| virtual void | setUseSimplification (bool use) |
| virtual bool | getUseSimplification () const |
| virtual void | freeSlice (unique_ptr< Slice > slice) |
| Public Member Functions inherited from PivotStrategy | |
| virtual EulerState * | doPivot (EulerState &state, const size_t *divCounts)=0 |
| virtual void | getName (ostream &out) const =0 |
| virtual void | computationCompleted (const PivotEulerAlg &alg)=0 |
| virtual bool | shouldTranspose (const EulerState &state) const =0 |
A wrapper for a SliceStrategy that prints out what is going out for debugging purposes, while delegating everything to the strategy being wrapped.
| DebugStrategy::DebugStrategy | ( | SliceStrategy * | strategy, |
| FILE * | out ) |
Debug information is written to out, and every call is delegated to strategy.
|
virtual |
It is allowed to delete returned slices directly, but it is better to use freeSlice. freeSlice can only be called on slices obtained from a method of the same strategy. This allows caching of slices to avoid frequent allocation and deallocation.
Implements SliceStrategy.
|
virtual |
Implements SliceStrategy.
|
virtual |
Process the parameter slice. Returns true if this is a base case and false otherwise.
Implements SliceStrategy.
|
virtual |
Run the Slice algorithm.
Implements SliceStrategy.
|
virtual |
This method should only be called before calling run().
Implements SliceStrategy.
|
virtual |
This method should only be called before calling run().
Implements SliceStrategy.