FST  openfst-1.7.1
OpenFst Library
Classes | Namespaces | Macros | Typedefs | Functions
weight-class.h File Reference
#include <memory>
#include <ostream>
#include <string>
#include <fst/arc.h>
#include <fst/generic-register.h>
#include <fst/util.h>
#include <fst/weight.h>
Include dependency graph for weight-class.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::script::WeightImplBase
 
class  fst::script::WeightClassImpl< W >
 
class  fst::script::WeightClass
 
class  fst::script::WeightClassRegister
 

Namespaces

 fst
 
 fst::script
 

Macros

#define REGISTER_FST_WEIGHT__(Weight, line)
 
#define REGISTER_FST_WEIGHT_EXPANDER(Weight, line)   REGISTER_FST_WEIGHT__(Weight, line)
 
#define REGISTER_FST_WEIGHT(Weight)   REGISTER_FST_WEIGHT_EXPANDER(Weight, __LINE__)
 

Typedefs

using fst::script::StrToWeightImplBaseT = WeightImplBase *(*)(const string &str, const string &src, size_t nline)
 
using fst::script::WeightClassRegisterer = GenericRegisterer< WeightClassRegister >
 

Functions

bool fst::script::operator== (const WeightClass &lhs, const WeightClass &rhs)
 
bool fst::script::operator!= (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass fst::script::Plus (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass fst::script::Times (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass fst::script::Divide (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass fst::script::Power (const WeightClass &w, size_t n)
 
std::ostream & fst::script::operator<< (std::ostream &o, const WeightClass &c)
 
template<class W >
WeightImplBase * fst::script::StrToWeightImplBase (const string &str, const string &src, size_t nline)
 

Macro Definition Documentation

#define REGISTER_FST_WEIGHT (   Weight)    REGISTER_FST_WEIGHT_EXPANDER(Weight, __LINE__)

Definition at line 229 of file weight-class.h.

#define REGISTER_FST_WEIGHT__ (   Weight,
  line 
)
Value:
static WeightClassRegisterer weight_registerer##_##line( \
Weight::Type(), StrToWeightImplBase<Weight>)
GenericRegisterer< WeightClassRegister > WeightClassRegisterer
Definition: weight-class.h:216

Definition at line 220 of file weight-class.h.

#define REGISTER_FST_WEIGHT_EXPANDER (   Weight,
  line 
)    REGISTER_FST_WEIGHT__(Weight, line)

Definition at line 225 of file weight-class.h.