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

FCSDebugMoveStack Class Reference

This class stores a stack of moves. More...

#include <FCSDebugMove.h>

Inheritance diagram for FCSDebugMoveStack:

FCSMoveStack List of all members.

Public Member Functions

 FCSDebugMoveStack ()
 Constructor.
virtual ~FCSDebugMoveStack ()
 Destructor.
FCSMoveStackCopy ()
 Make a new copy of the move stack.
void Push (FCSMove *Move)
 Push a move onto the stack.
int Pop (FCSMove **Move)
 Pop a move off the stack.

Protected Attributes

FCSDebugMovem_Moves
 Moves in the stack.

Detailed Description

This is the debug form of a move stack

Definition at line 140 of file FCSDebugMove.h.


Member Function Documentation

FCSMoveStack * FCSDebugMoveStack::Copy  )  [virtual]
 

Returns:
A pointer to the new copy of the move stack

Implements FCSMoveStack.

Definition at line 130 of file FCSDebugMove.cpp.

References FCSDebugMove::Copy(), FCSDebugMoveStack(), FCSMoveStack::m_MaxNumberOfMoves, m_Moves, and FCSMoveStack::m_NumberOfMoves.

int FCSDebugMoveStack::Pop FCSMove **  Move  )  [virtual]
 

Parameters:
Move is the move being popped off the stack
Returns:
Return 0 if no moves were on the stack

Implements FCSMoveStack.

Definition at line 154 of file FCSDebugMove.cpp.

References m_Moves, and FCSMoveStack::m_NumberOfMoves.

void FCSDebugMoveStack::Push FCSMove Move  )  [virtual]
 

Parameters:
Move is the move being pushed onto the stack

Implements FCSMoveStack.

Definition at line 142 of file FCSDebugMove.cpp.

References FCSDebugMove::Copy(), FCS_MOVE_STACK_GROW_BY, FCSMoveStack::m_MaxNumberOfMoves, m_Moves, FCSMoveStack::m_NumberOfMoves, and max.


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