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

FCIndirectStateStorage Class Reference

Indirect stack storage class.

#include <FCSStateStorage.h>

Inheritance diagram for FCIndirectStateStorage:

AFCSGenericStateStorage List of all members.

Public Member Functions

 FCIndirectStateStorage ()
 Constructor.
virtual ~FCIndirectStateStorage ()
 Destructor.
virtual bool CheckAndInsert (FCSStateWithLocations **ExistingState, FCSStateWithLocations *NewState)
 Insert a state into storage.

Protected Attributes

FCSIndirectStateWithLocations<
FCSStateWithLocations > * 
m_IndirectPreviousStatesMargin [PREV_STATES_SORT_MARGIN]
 The sort-margin.
int m_NumberOfPreviousStatesMargin
 The number of states in the sort margin.
FCSIndirectStateWithLocations<
FCSStateWithLocations > ** 
m_IndirectPreviousStates
 The sorted cached states.
int m_NumberOfIndirectPreviousStates
 Number of sorted cached states.
int m_MaxNumberOfIndirectPreviousStates
 Upper limit of sorted cached states.
FCSIndirectStatesCompareAlgorithm<
FCSIndirectStateWithLocations<
FCSStateWithLocations > * > 
m_Compare
 Compares two FCSIndirectStateWithLocations objects.

Detailed Description

Definition at line 160 of file FCSStateStorage.h.


Member Function Documentation

bool FCIndirectStateStorage::CheckAndInsert FCSStateWithLocations **  ExistingState,
FCSStateWithLocations NewState
[virtual]
 

Parameters:
ExistingState is the found or recently inserted state
NewState is the state to try to insert
Returns:
Return true if state was inserted, else false

Implements AFCSGenericStateStorage.

Definition at line 210 of file FCSStateStorage.cpp.

References m_Compare, m_IndirectPreviousStates, m_IndirectPreviousStatesMargin, m_MaxNumberOfIndirectPreviousStates, m_NumberOfIndirectPreviousStates, m_NumberOfPreviousStatesMargin, PREV_STATES_GROW_BY, and PREV_STATES_SORT_MARGIN.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 11:20:16 2005 for Cpp Freecell Solver by  doxygen 1.4.4