My Project
osl::record::KisenFile Class Reference

「.kif」という拡張子を持つ棋泉形式ファイル. More...

#include <kisen.h>

Public Member Functions

 KisenFile (const std::string &filename)
 ~KisenFile ()
size_t size () const
NumEffectState initialState () const
std::vector< Movemoves (size_t index)
std::string fileName () const
std::string ipxFileName () const

Static Public Member Functions

static std::string ipxFileName (const std::string &)

Static Public Attributes

static const size_t MaxMoves =256

Private Attributes

NumEffectState initial_state
std::ifstream ifs
size_t number_of_games
const std::string filename

Detailed Description

「.kif」という拡張子を持つ棋泉形式ファイル.

手のみの情報が入っている

Definition at line 24 of file kisen.h.

Constructor & Destructor Documentation

◆ KisenFile()

osl::record::KisenFile::KisenFile ( const std::string & filename)
explicit

Definition at line 84 of file kisen.cc.

References filename, ifs, and number_of_games.

◆ ~KisenFile()

osl::record::KisenFile::~KisenFile ( )

Definition at line 272 of file kisen.cc.

Member Function Documentation

◆ fileName()

std::string osl::record::KisenFile::fileName ( ) const
inline

Definition at line 38 of file kisen.h.

References filename.

◆ initialState()

Definition at line 36 of file kisen.h.

References initial_state.

Referenced by osl::rating::BradleyTerry::accumulate().

◆ ipxFileName() [1/2]

std::string osl::record::KisenFile::ipxFileName ( ) const
inline

Definition at line 39 of file kisen.h.

References filename, and ipxFileName().

Referenced by ipxFileName().

◆ ipxFileName() [2/2]

std::string osl::record::KisenFile::ipxFileName ( const std::string & filename)
static

Definition at line 123 of file kisen.cc.

References osl::misc::file_string(), and filename.

◆ moves()

◆ size()

size_t osl::record::KisenFile::size ( ) const
inline

Definition at line 35 of file kisen.h.

References number_of_games.

Referenced by moves(), and osl::rating::BradleyTerry::update().

Member Data Documentation

◆ filename

const std::string osl::record::KisenFile::filename
private

Definition at line 29 of file kisen.h.

Referenced by fileName(), ipxFileName(), ipxFileName(), and KisenFile().

◆ ifs

std::ifstream osl::record::KisenFile::ifs
private

Definition at line 27 of file kisen.h.

Referenced by KisenFile(), and moves().

◆ initial_state

Definition at line 26 of file kisen.h.

Referenced by initialState().

◆ MaxMoves

const size_t osl::record::KisenFile::MaxMoves =256
static

Definition at line 31 of file kisen.h.

Referenced by moves().

◆ number_of_games

Definition at line 28 of file kisen.h.

Referenced by KisenFile(), and size().


The documentation for this class was generated from the following files: