All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
miniBoardChar50.h
Go to the documentation of this file.
1 /* miniBoardChar50.h
2  */
3 #ifndef OSL_MINIBOARDCHAR50_H
4 #define OSL_MINIBOARDCHAR50_H
5 
7 #include <boost/cstdint.hpp>
8 #include <string>
9 namespace osl
10 {
11  namespace record
12  {
13  class MiniBoardChar50;
14  bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
15  bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
20  {
21  public:
23  explicit MiniBoardChar50(const SimpleState&);
24  explicit MiniBoardChar50(const std::string &src);
25  const std::string toString() const;
26  const SimpleState toSimpleState(Player turn=BLACK) const;
27  private:
33  CArray<uint8_t,50> data;
34  friend bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
35  friend bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
36  };
37  }
38 }
39 
40 
41 #endif /* OSL_MINIBOARDCHAR50_H */
42 // ;;; Local Variables:
43 // ;;; mode:c++
44 // ;;; c-basic-offset:2
45 // ;;; End: