solveThread_c Class Reference

#include <solvethread.h>

Inheritance diagram for solveThread_c:

Inheritance graph
[legend]
Collaboration diagram for solveThread_c:

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  ACT_PREPARATION, ACT_REDUCE, ACT_ASSEMBLING, ACT_DISASSEMBLING,
  ACT_PAUSING, ACT_FINISHED, ACT_ERROR, ACT_WAIT_TO_STOP
}
enum  { SRT_UNSORT, SRT_COMPLETE_MOVES, SRT_LEVEL }

Public Member Functions

unsigned int currentAction (void)
unsigned int currentActionParameter (void)
assembler_c::errState getErrorState (void)
int getErrorParam (void)
unsigned long getTime (void)
 solveThread_c (problem_c *puz, int par)
const problem_cgetProblem (void) const
void setSortMethod (int sort)
void setSolutionLimits (unsigned int limit, unsigned int drop=1)
const assert_exceptiongetAssertException (void)
virtual ~solveThread_c (void)
bool start (bool stop_after_prep=false)
void stop (void)
bool stopped (void) const
void run (void)

Static Public Attributes

static const int PAR_REDUCE = 0x01
static const int PAR_KEEP_MIRROR = 0x02
static const int PAR_KEEP_ROTATIONS = 0x04
static const int PAR_DROP_DISASSEMBLIES = 0x08
static const int PAR_DISASSM = 0x10
static const int PAR_JUST_COUNT = 0x20
static const int PAR_COMPLETE_ROTATIONS = 0x40

Private Member Functions

bool assembly (assembly_c *a)
 solveThread_c (const solveThread_c &)
void operator= (const solveThread_c &)

Private Attributes

unsigned int action
assembler_c::errState errState
int errParam
time_t startTime
problem_cpuzzle
int parameters
int sortMethod
unsigned int solutionLimit
unsigned int solutionDrop
unsigned int dropMultiplicator
assert_exception ae
bool stopPressed
bool return_after_prep
disassembler_cdisassm
assembler_cassm


Member Enumeration Documentation

anonymous enum

Enumerator:
ACT_PREPARATION 
ACT_REDUCE 
ACT_ASSEMBLING 
ACT_DISASSEMBLING 
ACT_PAUSING 
ACT_FINISHED 
ACT_ERROR 
ACT_WAIT_TO_STOP 

anonymous enum

Enumerator:
SRT_UNSORT 
SRT_COMPLETE_MOVES 
SRT_LEVEL 


Constructor & Destructor Documentation

solveThread_c::solveThread_c ( problem_c puz,
int  par 
)

References disassm, and PAR_DISASSM.

solveThread_c::~solveThread_c ( void   )  [virtual]

References disassm, and thread_c::kill().

solveThread_c::solveThread_c ( const solveThread_c  )  [private]


Member Function Documentation

bool solveThread_c::assembly ( assembly_c a  )  [private, virtual]

unsigned int solveThread_c::currentAction ( void   )  [inline]

References action.

unsigned int solveThread_c::currentActionParameter ( void   ) 

const assert_exception& solveThread_c::getAssertException ( void   )  [inline]

References ae.

int solveThread_c::getErrorParam ( void   )  [inline]

References ACT_ERROR, action, bt_assert, and errParam.

assembler_c::errState solveThread_c::getErrorState ( void   )  [inline]

References ACT_ERROR, action, bt_assert, and errState.

const problem_c* solveThread_c::getProblem ( void   )  const [inline]

References puzzle.

unsigned long solveThread_c::getTime ( void   )  [inline]

References startTime.

void solveThread_c::operator= ( const solveThread_c  )  [private]

void solveThread_c::run ( void   )  [virtual]

void solveThread_c::setSolutionLimits ( unsigned int  limit,
unsigned int  drop = 1 
) [inline]

References solutionDrop, and solutionLimit.

void solveThread_c::setSortMethod ( int  sort  )  [inline]

References sortMethod.

bool solveThread_c::start ( bool  stop_after_prep = false  ) 

void solveThread_c::stop ( void   )  [virtual]

bool solveThread_c::stopped ( void   )  const [inline]


Member Data Documentation

unsigned int solveThread_c::action [private]

Referenced by getAssertException(), and run().

Referenced by currentActionParameter(), and run().

unsigned int solveThread_c::dropMultiplicator [private]

Referenced by assembly(), and start().

int solveThread_c::errParam [private]

Referenced by getErrorParam(), and run().

Referenced by getErrorState(), and run().

const int solveThread_c::PAR_COMPLETE_ROTATIONS = 0x40 [static]

Referenced by run().

const int solveThread_c::PAR_DISASSM = 0x10 [static]

Referenced by assembly(), solveThread_c(), and start().

const int solveThread_c::PAR_DROP_DISASSEMBLIES = 0x08 [static]

Referenced by assembly().

const int solveThread_c::PAR_JUST_COUNT = 0x20 [static]

Referenced by assembly(), and start().

const int solveThread_c::PAR_KEEP_MIRROR = 0x02 [static]

Referenced by run().

const int solveThread_c::PAR_KEEP_ROTATIONS = 0x04 [static]

Referenced by run().

const int solveThread_c::PAR_REDUCE = 0x01 [static]

Referenced by run().

Referenced by assembly(), run(), and start().

Referenced by assembly(), getProblem(), run(), start(), and stop().

Referenced by run(), and start().

unsigned int solveThread_c::solutionDrop [private]

Referenced by assembly(), setSolutionLimits(), and start().

unsigned int solveThread_c::solutionLimit [private]

Referenced by assembly(), setSolutionLimits(), and start().

Referenced by assembly(), and setSortMethod().

time_t solveThread_c::startTime [private]

Referenced by getTime(), run(), and start().

Referenced by run(), start(), and stop().


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

Generated on Sun Oct 10 10:03:11 2010 for BurrTools by  doxygen 1.5.8