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

#include <string-weight.h>

Public Types

using Label = L
 
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 std::string & Type ()
 
static constexpr uint64 Properties ()
 

Friends

class StringWeightIterator< StringWeight >
 
class StringWeightReverseIterator< StringWeight >
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 95 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 248 of file string-weight.h.

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

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

Friends And Related Function Documentation

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

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

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

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


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