Public メソッド | Private 型 | Private 変数

クラス osl::container::MoveStack

Move のstack. [詳細]

#include <moveStack.h>

すべてのメンバ一覧

Public メソッド

 MoveStack ()
 ~MoveStack ()
void reserve (size_t)
void clear ()
void push (Move m)
void pop ()
bool hasLastMove (size_t last=1) const
const Move lastMove (size_t last=1) const
size_t size () const
void dump (size_t last_n=0) const
void dump (std::ostream &, size_t last_n=0) const
bool operator== (const MoveStack &r) const

Private 型

typedef std::vector< Movevector_t

Private 変数

vector_t data

説明

Move のstack.

主に探索で今までにさされた指手を保存するのに使用. size() == 0 の時に lastMove と lastMove(2) は Move::INVALID() を返す.

moveStack.h14 行で定義されています。


型定義

typedef std::vector<Move> osl::container::MoveStack::vector_t [private]

moveStack.h16 行で定義されています。


コンストラクタとデストラクタ

osl::container::MoveStack::MoveStack (  ) 
osl::container::MoveStack::~MoveStack (  ) 

関数

void osl::container::MoveStack::clear (  ) 
void osl::container::MoveStack::dump ( size_t  last_n = 0  )  const
引数:
last_n 最後のn個を表示,0なら全て.
void osl::container::MoveStack::dump ( std::ostream &  ,
size_t  last_n = 0 
) const
bool osl::container::MoveStack::hasLastMove ( size_t  last = 1  )  const [inline]
引数:
last lastLastMove if 2

moveStack.h27 行で定義されています。

参照先 size().

const Move osl::container::MoveStack::lastMove ( size_t  last = 1  )  const [inline]

moveStack.h28 行で定義されています。

参照先 data.

bool osl::container::MoveStack::operator== ( const MoveStack r  )  const [inline]

moveStack.h40 行で定義されています。

参照先 data.

void osl::container::MoveStack::pop (  )  [inline]

moveStack.h25 行で定義されています。

参照先 data.

void osl::container::MoveStack::push ( Move  m  )  [inline]

moveStack.h24 行で定義されています。

参照先 data.

void osl::container::MoveStack::reserve ( size_t   ) 
size_t osl::container::MoveStack::size (  )  const [inline]

moveStack.h34 行で定義されています。

参照先 data.

参照元 hasLastMove().


変数

moveStack.h17 行で定義されています。

参照元 lastMove(), operator==(), pop(), push(), と size().


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義