Frobby 0.10.0
Loading...
Searching...
No Matches
DebugStrategy Class Reference

#include <DebugStrategy.h>

Inheritance diagram for DebugStrategy:
Collaboration diagram for DebugStrategy:

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

Detailed Description

A wrapper for a SliceStrategy that prints out what is going out for debugging purposes, while delegating everything to the strategy being wrapped.

Constructor & Destructor Documentation

◆ DebugStrategy()

DebugStrategy::DebugStrategy ( SliceStrategy * strategy,
FILE * out )

Debug information is written to out, and every call is delegated to strategy.

Member Function Documentation

◆ freeSlice()

void DebugStrategy::freeSlice ( unique_ptr< Slice > slice)
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.

◆ getUseSimplification()

bool DebugStrategy::getUseSimplification ( ) const
virtual

Implements SliceStrategy.

◆ processSlice()

bool DebugStrategy::processSlice ( TaskEngine & tasks,
unique_ptr< Slice > slice )
virtual

Process the parameter slice. Returns true if this is a base case and false otherwise.

Implements SliceStrategy.

◆ run()

void DebugStrategy::run ( const Ideal & ideal)
virtual

Run the Slice algorithm.

Implements SliceStrategy.

◆ setUseIndependence()

void DebugStrategy::setUseIndependence ( bool use)
virtual

This method should only be called before calling run().

Implements SliceStrategy.

◆ setUseSimplification()

void DebugStrategy::setUseSimplification ( bool use)
virtual

This method should only be called before calling run().

Implements SliceStrategy.


The documentation for this class was generated from the following files: