HFST - Helsinki Finite-State Transducer Technology API  version 3.7.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
HfstTropicalTransducerTransitionData Class Reference

One implementation of template class C in HfstTransition. More...

#include <HfstTropicalTransducerTransitionData.h>

Public Types

typedef std::string SymbolType
 The input and output symbol type. More...
 
typedef std::set< SymbolTypeSymbolTypeSet
 A set of symbols. More...
 
typedef float WeightType
 The weight type. More...
 

Public Member Functions

const SymbolTypeget_input_symbol () const
 Get the input symbol. More...
 
const SymbolTypeget_output_symbol () const
 Get the output symbol. More...
 
WeightType get_weight () const
 Get the weight. More...
 
 HfstTropicalTransducerTransitionData ()
 Create a HfstTropicalTransducerTransitionData with epsilon input and output strings and weight zero. More...
 
 HfstTropicalTransducerTransitionData (const HfstTropicalTransducerTransitionData &data)
 Create a deep copy of HfstTropicalTransducerTransitionData data. More...
 
 HfstTropicalTransducerTransitionData (SymbolType isymbol, SymbolType osymbol, WeightType weight)
 Create a HfstTropicalTransducerTransitionData with input symbol isymbol, output symbol osymbol and weight weight. More...
 
bool operator< (const HfstTropicalTransducerTransitionData &another) const
 Whether this transition is less than transition another. More...
 

Detailed Description

One implementation of template class C in HfstTransition.

A HfstTropicalTransducerTransitionData has an input symbol and an output symbol of type SymbolType (string) and a weight of type WeightType (float).

Member Typedef Documentation

typedef std::string SymbolType

The input and output symbol type.

typedef std::set<SymbolType> SymbolTypeSet

A set of symbols.

typedef float WeightType

The weight type.

Constructor & Destructor Documentation

Create a HfstTropicalTransducerTransitionData with epsilon input and output strings and weight zero.

Create a deep copy of HfstTropicalTransducerTransitionData data.

HfstTropicalTransducerTransitionData ( SymbolType  isymbol,
SymbolType  osymbol,
WeightType  weight 
)
inline

Create a HfstTropicalTransducerTransitionData with input symbol isymbol, output symbol osymbol and weight weight.

Member Function Documentation

const SymbolType& get_input_symbol ( ) const
inline

Get the input symbol.

const SymbolType& get_output_symbol ( ) const
inline

Get the output symbol.

WeightType get_weight ( ) const
inline

Get the weight.

bool operator< ( const HfstTropicalTransducerTransitionData another) const
inline

Whether this transition is less than transition another.

/internal is it too slow if string comparison is used instead?


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