#include <record.h>

Public Types | |
| enum | ResultType { UNKNOWN =0, BLACK_WIN =1, WHITE_WIN =2, SENNNICHITE =3, JISHOGI =4 } |
Public Member Functions | |
| Record () | |
| Record (const SimpleState &initial, const vector< Move > &moves) | |
| void | init () |
| void | setVersion (const std::string &str) |
| const std::string | getVersion () const |
| void | addInitialComment (const std::string &comment) |
| const std::string | getInitialComment () const |
| void | setPlayer (Player player, const std::string &str) |
| const std::string & | getPlayer (Player player) const |
| void | setInitialState (const SimpleState &state) |
| const NumEffectState | getInitialState () const |
| int | addNodeRecord () |
| int | addMoveRecord (const MoveRecord &moveRecord) |
| NodeRecord * | nodeOf (int index) |
| NodeRecord & | operator[] (int index) |
| MoveRecord * | moveOf (int index) |
| void | load (IRecordStream &) |
| void | save (ORecordStream &) |
| const vector< Move > | getMoves () const |
| void | getMoves (vector< Move > &, vector< int > &) const |
| void | getMoves (vector< Move > &, vector< int > &, vector< std::string > &, vector< SearchInfo > &) const |
| const NodeRecord * | nodeOf (int index) const |
| const MoveRecord * | moveOf (int index) const |
| size_t | moveRecordSize () const |
| void | setResult (ResultType new_result) |
| ResultType | getResult () const |
| void | setTounamentName (const std::string &name) |
| const std::string & | tounamentName () const |
| void | setDate (const std::string &date_str) |
| Parse a date_str of YYYY/MM/DD format representing a date. More... | |
| void | setDate (const boost::gregorian::date &date) |
| boost::gregorian::date | getDate () const |
Private Attributes | |
| SimpleState | initialState |
| std::string | version |
| std::string | initial_comment |
| std::string | tounament_name |
| CArray< std::string, 2 > | playerNames |
| vector< NodeRecord > | nrs |
| vector< MoveRecord > | mrs |
| ResultType | result |
| boost::gregorian::date | start_date |
| osl::record::Record::Record | ( | const SimpleState & | initial, |
| const vector< Move > & | moves | ||
| ) |
Definition at line 41 of file record.cc.
References osl::record::RecordVisitor::addMoveAndAdvance(), osl::record::RecordVisitor::setRecord(), and osl::record::RecordVisitor::setState().
|
inline |
Definition at line 115 of file record.h.
Referenced by osl::record::kakinokiParseLine().
| int osl::record::Record::addMoveRecord | ( | const MoveRecord & | moveRecord) |
| boost::gregorian::date osl::record::Record::getDate | ( | ) | const |
Definition at line 196 of file record.cc.
Referenced by convert(), run(), and osl::record::KisenIpxWriter::save().
|
inline |
| const NumEffectState osl::record::Record::getInitialState | ( | ) | const |
Definition at line 82 of file record.cc.
Referenced by main(), osl::record::operator<<(), and osl::record::OKisenStream::save().
| const vector< Move > osl::record::Record::getMoves | ( | ) | const |
Definition at line 253 of file record.cc.
References moves.
Referenced by find_bad_moves(), main(), readFile(), run(), osl::record::OKisenStream::save(), and osl::record::KisenIpxWriter::save().
| void osl::record::Record::getMoves | ( | vector< Move > & | moves, |
| vector< int > & | times | ||
| ) | const |
| void osl::record::Record::getMoves | ( | vector< Move > & | moves, |
| vector< int > & | times, | ||
| vector< std::string > & | comments, | ||
| vector< SearchInfo > & | info | ||
| ) | const |
Definition at line 286 of file record.cc.
References osl::record::NodeRecord::at(), osl::record::MoveRecord::getComment(), osl::record::MoveRecord::getMove(), osl::record::MoveRecord::getNodeIndex(), osl::record::MoveRecord::getTime(), osl::record::MoveRecord::info, and osl::record::NodeRecord::size().
| const std::string & osl::record::Record::getPlayer | ( | Player | player) | const |
Definition at line 75 of file record.cc.
Referenced by osl::record::operator<<(), readFile(), and osl::record::KisenIpxWriter::save().
|
inline |
|
inline |
Definition at line 114 of file record.h.
Referenced by osl::record::operator<<().
| void osl::record::Record::init | ( | ) |
Definition at line 52 of file record.cc.
References osl::HIRATE, and result.
| void osl::record::Record::load | ( | IRecordStream & | irs) |
Definition at line 62 of file record.cc.
References osl::record::IRecordStream::load().
| MoveRecord * osl::record::Record::moveOf | ( | int | index) |
Definition at line 105 of file record.cc.
Referenced by osl::record::RecordVisitor::getLastMove(), osl::record::operator<<(), and readFile().
| const MoveRecord * osl::record::Record::moveOf | ( | int | index) | const |
|
inline |
Definition at line 142 of file record.h.
Referenced by readFile().
| NodeRecord * osl::record::Record::nodeOf | ( | int | index) |
Definition at line 99 of file record.cc.
References osl::record::NodeRecord::at().
Referenced by osl::record::RecordVisitor::getNode(), and osl::record::operator<<().
| const NodeRecord * osl::record::Record::nodeOf | ( | int | index) | const |
Definition at line 102 of file record.cc.
References osl::record::NodeRecord::at().
| NodeRecord & osl::record::Record::operator[] | ( | int | index) |
Definition at line 117 of file record.cc.
References osl::record::NodeRecord::at().
| void osl::record::Record::save | ( | ORecordStream & | ) |
| void osl::record::Record::setDate | ( | const std::string & | date_str) |
Parse a date_str of YYYY/MM/DD format representing a date.
Definition at line 120 of file record.cc.
References osl::misc::eucToLang(), K_R1, K_R2, K_R3, K_R4, K_R5, K_R6, K_R7, K_R8, and K_R9.
Referenced by convert(), and osl::record::kakinokiParseLine().
| void osl::record::Record::setDate | ( | const boost::gregorian::date & | date) |
| void osl::record::Record::setInitialState | ( | const SimpleState & | state) |
Definition at line 78 of file record.cc.
Referenced by osl::record::kakinokiParseLine().
| void osl::record::Record::setPlayer | ( | Player | player, |
| const std::string & | str | ||
| ) |
Definition at line 72 of file record.cc.
Referenced by convert(), and osl::record::kakinokiParseLine().
|
inline |
Definition at line 143 of file record.h.
Referenced by convert(), and osl::record::kakinokiParseLine().
|
inline |
Definition at line 145 of file record.h.
Referenced by osl::record::kakinokiParseLine().
| void osl::record::Record::setVersion | ( | const std::string & | str) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.4