HFST - Helsinki Finite-State Transducer Technology - C++ API  version 3.9.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

HFSTDLL const SymbolTypeget_input_symbol () const
 Get the input symbol. More...
 
HFSTDLL const SymbolTypeget_output_symbol () const
 Get the output symbol. More...
 
HFSTDLL WeightType get_weight () const
 Get the weight. More...
 
HFSTDLL HfstTropicalTransducerTransitionData ()
 Create a HfstTropicalTransducerTransitionData with epsilon input and output strings and weight zero. More...
 
HFSTDLL HfstTropicalTransducerTransitionData (const HfstTropicalTransducerTransitionData &data)
 Create a deep copy of HfstTropicalTransducerTransitionData data. More...
 
HFSTDLL HfstTropicalTransducerTransitionData (SymbolType isymbol, SymbolType osymbol, WeightType weight)
 Create a HfstTropicalTransducerTransitionData with input symbol isymbol, output symbol osymbol and weight weight. More...
 
HFSTDLL bool operator< (const HfstTropicalTransducerTransitionData &another) const
 Whether this transition is less than transition another. More...
 
HFSTDLL void set_weight (WeightType w)
 Set the weight. 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.

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

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

Member Function Documentation

HFSTDLL const SymbolType& get_input_symbol ( ) const
inline

Get the input symbol.

HFSTDLL const SymbolType& get_output_symbol ( ) const
inline

Get the output symbol.

HFSTDLL WeightType get_weight ( ) const
inline

Get the weight.

HFSTDLL 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?

HFSTDLL void set_weight ( WeightType  w)
inline

Set the weight.


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