FST  openfst-1.6.8
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::StringWeight< Label_, S > Class Template Reference

#include <string-weight.h>

Public Types

using Label = Label_
 
using ReverseWeight = StringWeight< Label, ReverseStringType(S)>
 
using Iterator = StringWeightIterator< StringWeight >
 
using ReverseIterator = StringWeightReverseIterator< StringWeight >
 

Public Member Functions

 StringWeight ()
 
template<typename Iterator >
 StringWeight (const Iterator &begin, const Iterator &end)
 
 StringWeight (Label label)
 
bool Member () const
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
size_t Hash () const
 
StringWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
void Clear ()
 
size_t Size () const
 
void PushFront (Label label)
 
void PushBack (Label label)
 

Static Public Member Functions

static const StringWeightZero ()
 
static const StringWeightOne ()
 
static const StringWeightNoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 

Friends

class StringWeightIterator< StringWeight >
 
class StringWeightReverseIterator< StringWeight >
 

Detailed Description

template<typename Label_, StringType S = STRING_LEFT>
class fst::StringWeight< Label_, S >

Definition at line 45 of file string-weight.h.

Member Typedef Documentation

template<typename Label_, StringType S = STRING_LEFT>
using fst::StringWeight< Label_, S >::Iterator = StringWeightIterator<StringWeight>

Definition at line 49 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
using fst::StringWeight< Label_, S >::Label = Label_

Definition at line 47 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
using fst::StringWeight< Label_, S >::ReverseIterator = StringWeightReverseIterator<StringWeight>

Definition at line 50 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
using fst::StringWeight< Label_, S >::ReverseWeight = StringWeight<Label, ReverseStringType(S)>

Definition at line 48 of file string-weight.h.

Constructor & Destructor Documentation

template<typename Label_, StringType S = STRING_LEFT>
fst::StringWeight< Label_, S >::StringWeight ( )
inline

Definition at line 55 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
template<typename Iterator >
fst::StringWeight< Label_, S >::StringWeight ( const Iterator begin,
const Iterator end 
)
inline

Definition at line 58 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
fst::StringWeight< Label_, S >::StringWeight ( Label  label)
inlineexplicit

Definition at line 62 of file string-weight.h.

Member Function Documentation

template<typename Label_, StringType S = STRING_LEFT>
void fst::StringWeight< Label_, S >::Clear ( )
inline

Definition at line 113 of file string-weight.h.

template<typename Label , StringType S>
size_t fst::StringWeight< Label, S >::Hash ( ) const
inline

Definition at line 258 of file string-weight.h.

template<typename Label , StringType S>
bool fst::StringWeight< Label, S >::Member ( ) const
inline

Definition at line 242 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
static const StringWeight& fst::StringWeight< Label_, S >::NoWeight ( )
inlinestatic

Definition at line 74 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
static const StringWeight& fst::StringWeight< Label_, S >::One ( )
inlinestatic

Definition at line 69 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
static constexpr uint64 fst::StringWeight< Label_, S >::Properties ( )
inlinestatic

Definition at line 99 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
void fst::StringWeight< Label_, S >::PushBack ( Label  label)
inline

Definition at line 125 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
void fst::StringWeight< Label_, S >::PushFront ( Label  label)
inline

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

template<typename Label_, StringType S = STRING_LEFT>
StringWeight fst::StringWeight< Label_, S >::Quantize ( float  delta = kDelta) const
inline

Definition at line 95 of file string-weight.h.

template<typename Label , StringType S>
std::istream & fst::StringWeight< Label, S >::Read ( std::istream &  strm)
inline

Definition at line 219 of file string-weight.h.

template<typename Label , StringType S>
StringWeight< Label, S >::ReverseWeight fst::StringWeight< Label, S >::Reverse ( ) const
inline

Definition at line 249 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
size_t fst::StringWeight< Label_, S >::Size ( ) const
inline

Definition at line 118 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
static const string& fst::StringWeight< Label_, S >::Type ( )
inlinestatic

Definition at line 79 of file string-weight.h.

template<typename Label , StringType S>
std::ostream & fst::StringWeight< Label, S >::Write ( std::ostream &  strm) const
inline

Definition at line 232 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
static const StringWeight& fst::StringWeight< Label_, S >::Zero ( )
inlinestatic

Definition at line 64 of file string-weight.h.

Friends And Related Function Documentation

template<typename Label_, StringType S = STRING_LEFT>
friend class StringWeightIterator< StringWeight >
friend

Definition at line 52 of file string-weight.h.

template<typename Label_, StringType S = STRING_LEFT>
friend class StringWeightReverseIterator< StringWeight >
friend

Definition at line 53 of file string-weight.h.


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