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

#include <set-weight.h>

Public Types

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

Public Member Functions

 SetWeight ()=default
 
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_t Properties ()
 
static const SetWeightEmptySet ()
 
static const SetWeightUnivSet ()
 

Friends

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

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 169 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 267 of file set-weight.h.

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

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

Friends And Related Function Documentation

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

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

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

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


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