#include <record.h>
Public メソッド | |
Record () | |
void | init () |
void | setVersion (const std::string &str) |
const std::string & | getVersion () const |
void | setPlayer (Player player, const std::string &str) |
const std::string & | getPlayer (Player player) const |
void | setInitialState (const SimpleState &state) |
SimpleState const & | 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 |
Private 変数 | |
std::string | version |
CArray< std::string, 2 > | playerNames |
vector< NodeRecord > | nrs |
vector< MoveRecord > | mrs |
SimpleState | initialState |
void osl::record::Record::init | ( | ) |
void osl::record::Record::setVersion | ( | const std::string & | str | ) |
const std::string & osl::record::Record::getVersion | ( | ) | const |
void osl::record::Record::setPlayer | ( | Player | player, | |
const std::string & | str | |||
) |
const std::string & osl::record::Record::getPlayer | ( | Player | player | ) | const |
void osl::record::Record::setInitialState | ( | const SimpleState & | state | ) |
SimpleState const & osl::record::Record::getInitialState | ( | ) | const |
int osl::record::Record::addNodeRecord | ( | ) |
int osl::record::Record::addMoveRecord | ( | const MoveRecord & | moveRecord | ) |
NodeRecord * osl::record::Record::nodeOf | ( | int | index | ) |
NodeRecord & osl::record::Record::operator[] | ( | int | index | ) |
MoveRecord * osl::record::Record::moveOf | ( | int | index | ) |
void osl::record::Record::load | ( | IRecordStream & | irs | ) |
void osl::record::Record::save | ( | ORecordStream & | ) |
const vector< Move > osl::record::Record::getMoves | ( | ) | const |
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 |
const NodeRecord * osl::record::Record::nodeOf | ( | int | index | ) | const |
const MoveRecord * osl::record::Record::moveOf | ( | int | index | ) | const |
std::string osl::record::Record::version [private] |
CArray<std::string,2> osl::record::Record::playerNames [private] |
vector<NodeRecord> osl::record::Record::nrs [private] |
vector<MoveRecord> osl::record::Record::mrs [private] |
SimpleState osl::record::Record::initialState [private] |