FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::MPdtStack< StackId, Level, nlevels, restrict > Class Template Reference

#include <mpdt.h>

Public Types

using Label = Level
 
using Config = StackConfig< StackId, Level, nlevels >
 
using ConfigToStackId = std::map< Config, StackId >
 

Public Member Functions

 MPdtStack (const std::vector< std::pair< Label, Label >> &parens, const std::vector< Level > &assignments)
 
 ~MPdtStack ()=default
 
 MPdtStack (const MPdtStack &other)
 
MPdtStackoperator= (const MPdtStack &other)
 
 MPdtStack (MPdtStack &&)=default
 
MPdtStackoperator= (MPdtStack &&)=default
 
StackId Find (StackId stack_id, Label label)
 
ssize_t Top (StackId stack_id) const
 
ssize_t ParenId (Label label) const
 
bool Error ()
 
StackId ExternalStackId (const Config &config)
 
const Config InternalStackIds (StackId stack_id) const
 
bool Empty (const Config &config, Level level) const
 
bool AllEmpty (const Config &config)
 

Detailed Description

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
class fst::internal::MPdtStack< StackId, Level, nlevels, restrict >

Definition at line 90 of file mpdt.h.

Member Typedef Documentation

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
using fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Config = StackConfig<StackId, Level, nlevels>

Definition at line 93 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
using fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::ConfigToStackId = std::map<Config, StackId>

Definition at line 94 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
using fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Label = Level

Definition at line 92 of file mpdt.h.

Constructor & Destructor Documentation

template<typename StackId , typename Level, Level nlevels, MPdtType restrict>
fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::MPdtStack ( const std::vector< std::pair< Label, Label >> &  parens,
const std::vector< Level > &  assignments 
)

Definition at line 212 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::~MPdtStack ( )
default
template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::MPdtStack ( const MPdtStack< StackId, Level, nlevels, restrict > &  other)
inline

Definition at line 101 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::MPdtStack ( MPdtStack< StackId, Level, nlevels, restrict > &&  )
default

Member Function Documentation

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
bool fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::AllEmpty ( const Config config)
inline

Definition at line 185 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
bool fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Empty ( const Config config,
Level  level 
) const
inline

Definition at line 181 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
bool fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Error ( )
inline

Definition at line 152 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
StackId fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::ExternalStackId ( const Config config)
inline

Definition at line 158 of file mpdt.h.

template<typename StackId, typename Level , Level nlevels, MPdtType restrict>
StackId fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Find ( StackId  stack_id,
Label  label 
)

Definition at line 268 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
const Config fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::InternalStackIds ( StackId  stack_id) const
inline

Definition at line 173 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
MPdtStack& fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::operator= ( const MPdtStack< StackId, Level, nlevels, restrict > &  other)
inline

Definition at line 114 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
MPdtStack& fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::operator= ( MPdtStack< StackId, Level, nlevels, restrict > &&  )
default
template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
ssize_t fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::ParenId ( Label  label) const
inline

Definition at line 147 of file mpdt.h.

template<typename StackId, typename Level, Level nlevels = 2, MPdtType restrict = MPdtType::READ_RESTRICT>
ssize_t fst::internal::MPdtStack< StackId, Level, nlevels, restrict >::Top ( StackId  stack_id) const
inline

Definition at line 130 of file mpdt.h.


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