Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Solver::CacheEntry Class Reference

Used to define entries in the cache. More...

List of all members.

Public Methods

 CacheEntry (int moves_to_solve, int depth, bool calculated)
int movesToSolve () const
bool unsolvable () const
void setMovesToSolve (int moves_to_solve)
int depth () const
void setDepth (int new_depth)
bool wasCalculated () const
bool wasTouched () const
void touch ()
void untouch ()

Private Attributes

Q_UINT32 m_data


Detailed Description

Used to define entries in the cache.


Constructor & Destructor Documentation

Solver::CacheEntry::CacheEntry int moves_to_solve,
int depth,
bool calculated
 

Constructs the cache entry.

The new entrie is considered touched.

Parameters:
moves_to_solve   The number of moves to solve.
depth   The depth of the corresponding map.
calculated   If true, the entrie is directly calculated.


Member Function Documentation

int Solver::CacheEntry::depth const
 

Returns the depth.

int Solver::CacheEntry::movesToSolve const
 

Returns the number of moves to solve.

void Solver::CacheEntry::setDepth int new_depth
 

Sets a new depth.

Parameters:
new_depth   The depth of the corresponding map.

void Solver::CacheEntry::setMovesToSolve int moves_to_solve
 

Sets a new number of moves to solve.

The entries is now considered to be not calculated.

Parameters:
moves_to_solve   The number of moves to solve.

void Solver::CacheEntry::touch
 

Touches the entry.

bool Solver::CacheEntry::unsolvable const
 

Returns true, if the entry is unsolvable.

void Solver::CacheEntry::untouch
 

Untouches the entry.

bool Solver::CacheEntry::wasCalculated const
 

Returns true, if the entry is calculated.

bool Solver::CacheEntry::wasTouched const
 

Returns true, if the entry was touched.


Member Data Documentation

Q_UINT32 Solver::CacheEntry::m_data [private]
 

Here we store the data.


The documentation for this class was generated from the following file:
Generated at Sun Jan 6 18:49:12 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001