Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

GoBoardUpdater Class Reference

Updates a board to a node in a game tree. More...

#include <GoBoardUpdater.h>

List of all members.

Public Member Functions

void Update (const SgNode *node, GoBoard &bd)

Private Attributes

std::vector< const SgNode * > m_nodes
 Local variable used in Update().

Detailed Description

Updates a board to a node in a game tree.

This could be a function, but is a class to reuse a locally used list for efficiency. The update is always done from scratch (initializing the board and applying all changes from the root node to the current node).

Definition at line 19 of file GoBoardUpdater.h.


Member Function Documentation

void GoBoardUpdater::Update ( const SgNode node,
GoBoard bd 
)

Member Data Documentation

std::vector<const SgNode*> GoBoardUpdater::m_nodes [private]

Local variable used in Update().

Member variable for avoiding frequent new memory allocations.

Definition at line 27 of file GoBoardUpdater.h.

Referenced by Update().


The documentation for this class was generated from the following files:


Sun Mar 13 2011 Doxygen 1.7.1