My Project
capture.cc
Go to the documentation of this file.
1 /* capture.cc
2  */
4 #include <sstream>
5 
6 const std::string osl::rating::Capture::name(int first, int /*last*/)
7 {
8  std::ostringstream os;
9  os << "(";
10  if (first == -INF)
11  os << "-inf";
12  else
13  os << first;
14  os << " <= )";
15  return os.str();
16 }
17 
19  : Feature(Ptype_Table.getCsaName(p)), ptype(p)
20 {
21 }
22 
23 /* ------------------------------------------------------------------------- */
capture.h
osl::rating::DropCaptured::DropCaptured
DropCaptured(Ptype ptype)
Definition: capture.cc:18
osl::rating::Capture::INF
@ INF
Definition: capture.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
osl::rating::Feature
Definition: rating/feature.h:15
osl::rating::Capture::first
int first
Definition: capture.h:20