FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::PdtBalanceData< Arc > Class Template Reference

#include <paren.h>

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using State = ParenState< Arc >
 
using StateHash = typename State::Hash
 
using OpenParenSet = std::unordered_set< State, StateHash >
 
using OpenParenMap = std::unordered_map< StateId, std::vector< Label >>
 
using CloseParenMap = std::unordered_map< State, std::vector< StateId >, StateHash >
 
using CloseSourceMap = std::unordered_map< State, ssize_t, StateHash >
 
using SetIterator = typename Collection< ssize_t, StateId >::SetIterator
 

Public Member Functions

 PdtBalanceData ()=default
 
void Clear ()
 
void OpenInsert (Label paren_id, StateId open_dest)
 
void CloseInsert (Label paren_id, StateId open_dest, StateId close_source)
 
SetIterator Find (Label paren_id, StateId open_dest)
 
void FinishInsert (StateId open_dest)
 
PdtBalanceData< Arc > * Reverse (StateId num_states, StateId num_split, StateId state_id_shift) const
 

Detailed Description

template<class Arc>
class fst::internal::PdtBalanceData< Arc >

Definition at line 338 of file paren.h.

Member Typedef Documentation

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::CloseParenMap = std::unordered_map<State, std::vector<StateId>, StateHash>

Definition at line 354 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::CloseSourceMap = std::unordered_map<State, ssize_t, StateHash>

Definition at line 357 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::Label = typename Arc::Label

Definition at line 340 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::OpenParenMap = std::unordered_map<StateId, std::vector<Label>>

Definition at line 350 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::OpenParenSet = std::unordered_set<State, StateHash>

Definition at line 347 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::SetIterator = typename Collection<ssize_t, StateId>::SetIterator

Definition at line 359 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::State = ParenState<Arc>

Definition at line 343 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::StateHash = typename State::Hash

Definition at line 344 of file paren.h.

template<class Arc>
using fst::internal::PdtBalanceData< Arc >::StateId = typename Arc::StateId

Definition at line 341 of file paren.h.

Constructor & Destructor Documentation

template<class Arc>
fst::internal::PdtBalanceData< Arc >::PdtBalanceData ( )
default

Member Function Documentation

template<class Arc>
void fst::internal::PdtBalanceData< Arc >::Clear ( )
inline

Definition at line 363 of file paren.h.

template<class Arc>
void fst::internal::PdtBalanceData< Arc >::CloseInsert ( Label  paren_id,
StateId  open_dest,
StateId  close_source 
)
inline

Definition at line 379 of file paren.h.

template<class Arc>
SetIterator fst::internal::PdtBalanceData< Arc >::Find ( Label  paren_id,
StateId  open_dest 
)
inline

Definition at line 389 of file paren.h.

template<class Arc>
void fst::internal::PdtBalanceData< Arc >::FinishInsert ( StateId  open_dest)
inline

Definition at line 402 of file paren.h.

template<class Arc>
void fst::internal::PdtBalanceData< Arc >::OpenInsert ( Label  paren_id,
StateId  open_dest 
)
inline

Definition at line 369 of file paren.h.

template<class Arc >
PdtBalanceData< Arc > * fst::internal::PdtBalanceData< Arc >::Reverse ( StateId  num_states,
StateId  num_split,
StateId  state_id_shift 
) const

Definition at line 448 of file paren.h.


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