Cambridge SMT System
FunctionWeight Class Reference

#include <function-weight.h>

Public Types

typedef FunctionWeight ReverseWeight
 

Public Member Functions

 FunctionWeight ()
 
 FunctionWeight (MertList &values)
 
 FunctionWeight (const MertList &values)
 
const MertListValue () 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< FMap (F) const
 

Static Public Member Functions

static const FunctionWeightZero ()
 
static const FunctionWeightOne ()
 
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 &)
 

Detailed Description

Definition at line 105 of file function-weight.h.

Member Typedef Documentation

Constructor & Destructor Documentation

FunctionWeight::FunctionWeight ( )
inline

Definition at line 120 of file function-weight.h.

FunctionWeight::FunctionWeight ( MertList values)
inline

Definition at line 124 of file function-weight.h.

FunctionWeight::FunctionWeight ( const MertList values)
inline

Definition at line 128 of file function-weight.h.

Member Function Documentation

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.

fst::TropicalWeightTpl< F > FunctionWeight::Map ( F  gamma) const

Definition at line 157 of file function-weight.cpp.

bool FunctionWeight::Member ( ) const

Definition at line 292 of file function-weight.cpp.

static const FunctionWeight& FunctionWeight::One ( )
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.

static uint64 FunctionWeight::Properties ( )
inlinestatic

Definition at line 155 of file function-weight.h.

Here is the call graph for this function:

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.

static const std::string& FunctionWeight::Type ( )
inlinestatic

Definition at line 167 of file function-weight.h.

Here is the call graph for this function:

const MertList& FunctionWeight::Value ( ) const
inline

Definition at line 132 of file function-weight.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream & FunctionWeight::Write ( std::ostream &  strm) const

Definition at line 264 of file function-weight.cpp.

static const FunctionWeight& FunctionWeight::Zero ( )
inlinestatic

Definition at line 110 of file function-weight.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  strm,
FunctionWeight w 
)
friend

Definition at line 250 of file function-weight.cpp.

FunctionWeight Plus ( const FunctionWeight w1,
const FunctionWeight w2 
)
friend

Definition at line 197 of file function-weight.cpp.

FunctionWeight Times ( const FunctionWeight w1,
const FunctionWeight w2 
)
friend

Definition at line 163 of file function-weight.cpp.


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