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

FCSCompactMoveStack Class Reference

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

#include <FCSCompactMove.h>

Inheritance diagram for FCSCompactMoveStack:

FCSMoveStack List of all members.

Public Member Functions

 FCSCompactMoveStack ()
 Constructor.
virtual ~FCSCompactMoveStack ()
 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

FCSCompactMovem_Moves
 The moves on the stack.

Detailed Description

This is the compact form of a move stack

Definition at line 130 of file FCSCompactMove.h.


Member Function Documentation

FCSMoveStack * FCSCompactMoveStack::Copy  )  [virtual]
 

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

Implements FCSMoveStack.

Definition at line 117 of file FCSCompactMove.cpp.

References FCSCompactMove::Copy(), FCSCompactMoveStack(), FCSMoveStack::m_MaxNumberOfMoves, m_Moves, and FCSMoveStack::m_NumberOfMoves.

int FCSCompactMoveStack::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 141 of file FCSCompactMove.cpp.

References m_Moves, and FCSMoveStack::m_NumberOfMoves.

void FCSCompactMoveStack::Push FCSMove Move  )  [virtual]
 

Parameters:
Move is the move being pushed onto the stack

Implements FCSMoveStack.

Definition at line 129 of file FCSCompactMove.cpp.

References FCSCompactMove::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