Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

PatternHit Class Reference

Instance of a pattern matching a subset of the board. More...

#include <PatternState.hpp>

List of all members.

Public Member Functions

 PatternHit (const Pattern *pat, HexPoint move)
 Creates an instance with a single encoded move1, and move2 is empty.
 PatternHit (const Pattern *pat, const std::vector< HexPoint > &moves1)
 Creates an instance with a set of encoded move1, and move2 is empty.
 PatternHit (const Pattern *pat, const std::vector< HexPoint > &moves1, const std::vector< HexPoint > &moves2)
 Creates an instance with two sets of encoded moves.
const Patternpattern () const
 Returns the pattern.
const std::vector< HexPoint > & moves1 () const
 Returns the set of moves the pattern encodes.
const std::vector< HexPoint > & moves2 () const

Private Attributes

const Patternm_pattern
std::vector< HexPointm_moves1
std::vector< HexPointm_moves2

Detailed Description

Instance of a pattern matching a subset of the board.

Definition at line 19 of file PatternState.hpp.


Constructor & Destructor Documentation

PatternHit::PatternHit ( const Pattern pat,
HexPoint  move 
) [inline]

Creates an instance with a single encoded move1, and move2 is empty.

Definition at line 52 of file PatternState.hpp.

PatternHit::PatternHit ( const Pattern pat,
const std::vector< HexPoint > &  moves1 
) [inline]

Creates an instance with a set of encoded move1, and move2 is empty.

Definition at line 59 of file PatternState.hpp.

PatternHit::PatternHit ( const Pattern pat,
const std::vector< HexPoint > &  moves1,
const std::vector< HexPoint > &  moves2 
) [inline]

Creates an instance with two sets of encoded moves.

Definition at line 67 of file PatternState.hpp.


Member Function Documentation

const std::vector< HexPoint > & PatternHit::moves1 (  )  const [inline]

Returns the set of moves the pattern encodes.

Definition at line 81 of file PatternState.hpp.

References m_moves1.

const std::vector< HexPoint > & PatternHit::moves2 (  )  const [inline]

Definition at line 86 of file PatternState.hpp.

References m_moves2.

const Pattern * PatternHit::pattern (  )  const [inline]

Returns the pattern.

Definition at line 76 of file PatternState.hpp.

References m_pattern.


Member Data Documentation

std::vector<HexPoint> PatternHit::m_moves1 [private]

Definition at line 47 of file PatternState.hpp.

Referenced by moves1().

std::vector<HexPoint> PatternHit::m_moves2 [private]

Definition at line 49 of file PatternState.hpp.

Referenced by moves2().

const Pattern* PatternHit::m_pattern [private]

Definition at line 45 of file PatternState.hpp.

Referenced by pattern().


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


6 Jan 2011 Doxygen 1.6.3