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

#include <set-weight.h>

Public Types

using Label = Label_
 
using ReverseWeight = SetWeight< Label, S >
 
using Iterator = SetWeightIterator< SetWeight >
 

Public Member Functions

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

Static Public Member Functions

static const SetWeightZero ()
 
static const SetWeightOne ()
 
static const SetWeightNoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64 Properties ()
 
static const SetWeightEmptySet ()
 
static const SetWeightUnivSet ()
 

Friends

class SetWeightIterator< SetWeight >
 
template<typename L2 , SetType S2>
class SetWeight
 

Detailed Description

template<typename Label_, SetType S = SET_INTERSECT_UNION>
class fst::SetWeight< Label_, S >

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

Member Typedef Documentation

template<typename Label_, SetType S = SET_INTERSECT_UNION>
using fst::SetWeight< Label_, S >::Iterator = SetWeightIterator<SetWeight>

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
using fst::SetWeight< Label_, S >::Label = Label_

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
using fst::SetWeight< Label_, S >::ReverseWeight = SetWeight<Label, S>

Definition at line 51 of file set-weight.h.

Constructor & Destructor Documentation

template<typename Label_, SetType S = SET_INTERSECT_UNION>
fst::SetWeight< Label_, S >::SetWeight ( )
inline

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<typename Iterator >
fst::SetWeight< Label_, S >::SetWeight ( const Iterator  begin,
const Iterator  end 
)
inline

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
fst::SetWeight< Label_, S >::SetWeight ( Label  label)
inlineexplicit

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<SetType S2>
fst::SetWeight< Label_, S >::SetWeight ( const SetWeight< Label, S2 > &  w)
inlineexplicit

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<SetType S2>
fst::SetWeight< Label_, S >::SetWeight ( SetWeight< Label, S2 > &&  w)
inlineexplicit

Definition at line 75 of file set-weight.h.

Member Function Documentation

template<typename Label_, SetType S = SET_INTERSECT_UNION>
Label fst::SetWeight< Label_, S >::Back ( )
inline

Definition at line 157 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
void fst::SetWeight< Label_, S >::Clear ( )
inline

Definition at line 150 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const SetWeight& fst::SetWeight< Label_, S >::EmptySet ( )
inlinestatic

Definition at line 138 of file set-weight.h.

template<typename Label , SetType S>
size_t fst::SetWeight< Label, S >::Hash ( ) const
inline

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

template<typename Label , SetType S>
bool fst::SetWeight< Label, S >::Member ( ) const
inline

Definition at line 253 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const SetWeight& fst::SetWeight< Label_, S >::NoWeight ( )
inlinestatic

Definition at line 101 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const SetWeight& fst::SetWeight< Label_, S >::One ( )
inlinestatic

Definition at line 97 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<SetType S2>
SetWeight& fst::SetWeight< Label_, S >::operator= ( const SetWeight< Label, S2 > &  w)
inline

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

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<SetType S2>
SetWeight& fst::SetWeight< Label_, S >::operator= ( SetWeight< Label, S2 > &&  w)
inline

Definition at line 86 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static constexpr uint64 fst::SetWeight< Label_, S >::Properties ( )
inlinestatic

Definition at line 130 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
void fst::SetWeight< Label_, S >::PushBack ( Label  label)
inline

Definition at line 168 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
SetWeight fst::SetWeight< Label_, S >::Quantize ( float  delta = kDelta) const
inline

Definition at line 126 of file set-weight.h.

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

Definition at line 230 of file set-weight.h.

template<typename Label , SetType S>
SetWeight< Label, S >::ReverseWeight fst::SetWeight< Label, S >::Reverse ( ) const
inline

Definition at line 260 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
size_t fst::SetWeight< Label_, S >::Size ( ) const
inline

Definition at line 155 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const std::string& fst::SetWeight< Label_, S >::Type ( )
inlinestatic

Definition at line 106 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const SetWeight& fst::SetWeight< Label_, S >::UnivSet ( )
inlinestatic

Definition at line 144 of file set-weight.h.

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

Definition at line 243 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
static const SetWeight& fst::SetWeight< Label_, S >::Zero ( )
inlinestatic

Definition at line 93 of file set-weight.h.

Friends And Related Function Documentation

template<typename Label_, SetType S = SET_INTERSECT_UNION>
template<typename L2 , SetType S2>
friend class SetWeight
friend

Definition at line 56 of file set-weight.h.

template<typename Label_, SetType S = SET_INTERSECT_UNION>
friend class SetWeightIterator< SetWeight >
friend

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


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