capture.cc
Go to the documentation of this file.
/* capture.cc
*/
#include "osl/rating/feature/capture.h"
#include <sstream>
const std::string osl::rating::Capture::name(int first, int /*last*/)
{
std::ostringstream os;
os << "(";
if (first == -INF)
os << "-inf";
else
os << first;
os << " <= )";
return os.str();
}
osl::rating::DropCaptured::DropCaptured(Ptype p)
: Feature(Ptype_Table.getCsaName(p)), ptype(p)
{
}
/* ------------------------------------------------------------------------- */
capture.h
osl::rating::Capture::INF
@ INF
Definition capture.h:18
osl::rating::Capture::first
int first
Definition capture.h:20
osl::rating::DropCaptured::DropCaptured
DropCaptured(Ptype ptype)
Definition capture.cc:18
osl::rating::DropCaptured::ptype
Ptype ptype
Definition capture.h:71
osl::rating::Feature::Feature
Feature(const std::string &name)
Definition rating/feature.h:18
osl::rating::Feature::name
const std::string & name() const
Definition rating/feature.h:24
osl::Ptype
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84
osl::Ptype_Table
const PtypeTable Ptype_Table
Definition tables.cc:97