FST  openfst-1.8.2
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_t 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 60 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 64 of file string-weight.h.

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 133 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 94 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 247 of file string-weight.h.

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

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

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

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


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