Cambridge SMT System
|
#include <function-weight.h>
Public Types | |
typedef FunctionWeight | ReverseWeight |
Public Member Functions | |
FunctionWeight () | |
FunctionWeight (MertList &values) | |
FunctionWeight (const MertList &values) | |
const MertList & | Value () const |
bool | operator== (const FunctionWeight &) const |
bool | operator!= (const FunctionWeight &) const |
FunctionWeight | Divide (const FunctionWeight &fw1, const FunctionWeight &, fst::DivideType t=fst::DIVIDE_ANY) |
std::size_t | Hash () const |
bool | Member () const |
ReverseWeight | Reverse () const |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
fst::TropicalWeightTpl< F > | Map (F) const |
Static Public Member Functions | |
static const FunctionWeight & | Zero () |
static const FunctionWeight & | One () |
static uint64 | Properties () |
static const std::string & | Type () |
Friends | |
std::istream & | operator>> (std::istream &strm, FunctionWeight &w) |
FunctionWeight | Plus (const FunctionWeight &, const FunctionWeight &) |
FunctionWeight | Times (const FunctionWeight &, const FunctionWeight &) |
Definition at line 105 of file function-weight.h.
Definition at line 108 of file function-weight.h.
|
inline |
Definition at line 120 of file function-weight.h.
|
inline |
Definition at line 124 of file function-weight.h.
|
inline |
Definition at line 128 of file function-weight.h.
FunctionWeight FunctionWeight::Divide | ( | const FunctionWeight & | fw1, |
const FunctionWeight & | , | ||
fst::DivideType | t = fst::DIVIDE_ANY |
||
) |
Definition at line 296 of file function-weight.cpp.
std::size_t FunctionWeight::Hash | ( | ) | const |
Definition at line 287 of file function-weight.cpp.
Definition at line 157 of file function-weight.cpp.
bool FunctionWeight::Member | ( | ) | const |
Definition at line 292 of file function-weight.cpp.
|
inlinestatic |
Definition at line 115 of file function-weight.h.
bool FunctionWeight::operator!= | ( | const FunctionWeight & | w1 | ) | const |
Definition at line 153 of file function-weight.cpp.
bool FunctionWeight::operator== | ( | const FunctionWeight & | w1 | ) | const |
Definition at line 146 of file function-weight.cpp.
|
inlinestatic |
std::istream & FunctionWeight::Read | ( | std::istream & | strm | ) |
Definition at line 274 of file function-weight.cpp.
FunctionWeight::ReverseWeight FunctionWeight::Reverse | ( | ) | const |
Definition at line 302 of file function-weight.cpp.
|
inlinestatic |
|
inline |
Definition at line 132 of file function-weight.h.
std::ostream & FunctionWeight::Write | ( | std::ostream & | strm | ) | const |
Definition at line 264 of file function-weight.cpp.
|
inlinestatic |
|
friend |
Definition at line 250 of file function-weight.cpp.
|
friend |
Definition at line 197 of file function-weight.cpp.
|
friend |
Definition at line 163 of file function-weight.cpp.