Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctGlobalSearchStateFactory< POLICY, FACTORY > Class Template Reference

#include <GoUctGlobalSearch.h>

Inheritance diagram for GoUctGlobalSearchStateFactory< POLICY, FACTORY >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class POLICY, class FACTORY>
class GoUctGlobalSearchStateFactory< POLICY, FACTORY >

Factory for creating a GoUctGlobalSearchState.

POLICY The playout policy FACTORY The factory for the playout policy

Definition at line 528 of file GoUctGlobalSearch.h.

Public Member Functions

 GoUctGlobalSearchStateFactory (GoBoard &bd, FACTORY &playoutPolicyFactory, const GoUctPlayoutPolicyParam &policyParam, const SgBWSet &safe, const SgPointArray< bool > &allSafe)
 Constructor.
SgUctThreadStateCreate (std::size_t threadId, const SgUctSearch &search)

Private Attributes

GoBoardm_bd
FACTORY & m_playoutPolicyFactory
const GoUctPlayoutPolicyParamm_policyParam
const SgBWSetm_safe
const SgPointArray< bool > & m_allSafe


Constructor & Destructor Documentation

template<class POLICY, class FACTORY>
GoUctGlobalSearchStateFactory< POLICY, FACTORY >::GoUctGlobalSearchStateFactory ( GoBoard bd,
FACTORY &  playoutPolicyFactory,
const GoUctPlayoutPolicyParam policyParam,
const SgBWSet safe,
const SgPointArray< bool > &  allSafe 
)

Constructor.

Parameters:
bd 
playoutPolicyFactory Factory for playout policies. Stores a reference. Lifetime of parameter must exceed the lifetime of this instance.
safe 
allSafe 

Definition at line 562 of file GoUctGlobalSearch.h.


Member Function Documentation

template<class POLICY, class FACTORY>
SgUctThreadState * GoUctGlobalSearchStateFactory< POLICY, FACTORY >::Create ( std::size_t  threadId,
const SgUctSearch search 
) [virtual]

Implements SgUctThreadStateFactory.

Definition at line 756 of file GoUctGlobalSearch.h.

References GoUctSearch::Board(), GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_allSafe, GoUctGlobalSearch< POLICY, FACTORY >::m_param, GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_playoutPolicyFactory, GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_policyParam, and GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_safe.


Member Data Documentation

template<class POLICY, class FACTORY>
const SgPointArray<bool>& GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_allSafe [private]

Definition at line 557 of file GoUctGlobalSearch.h.

Referenced by GoUctGlobalSearchStateFactory< POLICY, FACTORY >::Create().

template<class POLICY, class FACTORY>
GoBoard& GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_bd [private]

Definition at line 549 of file GoUctGlobalSearch.h.

template<class POLICY, class FACTORY>
FACTORY& GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_playoutPolicyFactory [private]

Definition at line 551 of file GoUctGlobalSearch.h.

Referenced by GoUctGlobalSearchStateFactory< POLICY, FACTORY >::Create().

template<class POLICY, class FACTORY>
const GoUctPlayoutPolicyParam& GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_policyParam [private]

Definition at line 553 of file GoUctGlobalSearch.h.

Referenced by GoUctGlobalSearchStateFactory< POLICY, FACTORY >::Create().

template<class POLICY, class FACTORY>
const SgBWSet& GoUctGlobalSearchStateFactory< POLICY, FACTORY >::m_safe [private]

Definition at line 555 of file GoUctGlobalSearch.h.

Referenced by GoUctGlobalSearchStateFactory< POLICY, FACTORY >::Create().


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


17 Jun 2010 Doxygen 1.4.7