|
Frobby 0.10.0
|
#include <SliceStrategy.h>

Public Member Functions | |
| virtual void | run (const Ideal &ideal)=0 |
| virtual bool | processSlice (TaskEngine &tasks, unique_ptr< Slice > slice)=0 |
| virtual void | setUseIndependence (bool use)=0 |
| virtual void | setUseSimplification (bool use)=0 |
| virtual bool | getUseSimplification () const =0 |
| virtual void | freeSlice (unique_ptr< Slice > slice)=0 |
This class describes the interface of a strategy object for the Slice Algorithm. It determines what goes on when the algorithm runs, allowing to specialize the algorithm to do several different computations.
|
pure 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.
Implemented in DebugStrategy, SliceStrategyCommon, and StatisticsStrategy.
|
pure virtual |
Implemented in SliceStrategyCommon.
|
pure virtual |
Process the parameter slice. Returns true if this is a base case and false otherwise.
Implemented in DebugStrategy, HilbertStrategy, MsmStrategy, and StatisticsStrategy.
|
pure virtual |
Run the Slice algorithm.
Implemented in DebugStrategy, HilbertStrategy, MsmStrategy, and StatisticsStrategy.
|
pure virtual |
This method should only be called before calling run().
Implemented in DebugStrategy, OptimizeStrategy, SliceStrategyCommon, and StatisticsStrategy.
|
pure virtual |
This method should only be called before calling run().
Implemented in DebugStrategy, SliceStrategyCommon, and StatisticsStrategy.