miniBoardChar50.h
Go to the documentation of this file.
/* miniBoardChar50.h
*/
#ifndef OSL_MINIBOARDCHAR50_H
#define OSL_MINIBOARDCHAR50_H
#include "osl/simpleState.h"
#include <string>
namespace osl
{
namespace book
{
class MiniBoardChar50;
bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
class MiniBoardChar50
{
public:
MiniBoardChar50();
explicit MiniBoardChar50(const SimpleState&);
explicit MiniBoardChar50(const std::string &src);
const std::string toString() const;
const SimpleState toSimpleState(Player turn=BLACK) const;
private:
CArray<uint8_t,50> data;
friend bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
friend bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
};
}
}
#endif /* OSL_MINIBOARDCHAR50_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::CArray
Definition container.h:20
osl::SimpleState
Definition simpleState.h:35
osl::book::MiniBoardChar50
50 byte の盤面.
Definition miniBoardChar50.h:19
osl::book::MiniBoardChar50::toString
const std::string toString() const
Definition miniBoardChar50.cc:71
osl::book::MiniBoardChar50::MiniBoardChar50
MiniBoardChar50()
Definition miniBoardChar50.cc:12
osl::book::MiniBoardChar50::data
CArray< uint8_t, 50 > data
Definition miniBoardChar50.h:32
osl::book::MiniBoardChar50::operator<
friend bool operator<(const MiniBoardChar50 &, const MiniBoardChar50 &)
osl::book::MiniBoardChar50::operator==
friend bool operator==(const MiniBoardChar50 &, const MiniBoardChar50 &)
osl::book::MiniBoardChar50::toSimpleState
const SimpleState toSimpleState(Player turn=BLACK) const
Definition miniBoardChar50.cc:47
osl::book
Definition bookInMemory.h:12
osl::book::operator<
bool operator<(const MiniBoardChar50 &, const MiniBoardChar50 &)
Definition miniBoardChar50.cc:76
osl::book::operator==
bool operator==(const CompactBoard &, const CompactBoard &)
局面を比較する.
Definition compactBoard.cc:73
osl
Definition additionalEffect.h:6
osl::Player
Player
Definition basic_type.h:8
osl::BLACK
@ BLACK
Definition basic_type.h:9
simpleState.h