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

FCTreeStateStorage Class Reference

Generic tree state storage class.

#include <FCSStateStorage.h>

Inheritance diagram for FCTreeStateStorage:

AFCSGenericStateStorage FCAVLRedBlackTreeStateStorage FCAVLTreeStateStorage FCGLIBTreeStateStorage FCRedBlackTreeStateStorage List of all members.

Public Member Functions

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

Protected Attributes

AGenericTree< FCSStateWithLocations,
void > * 
m_Tree
 Tree to store states.

Detailed Description

Definition at line 47 of file FCSStateStorage.h.


Member Function Documentation

bool FCTreeStateStorage::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 40 of file FCSStateStorage.cpp.

References m_Tree, and AGenericTree< Data, ConfigData >::Search().


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