FST  openfst-1.7.3
OpenFst Library
Classes | Public Types | Public Member Functions | List of all members
fst::NestedTrieTopology< L, H > Class Template Reference

#include <trie.h>

Classes

class  const_iterator
 

Public Types

typedef L Label
 
typedef H Hash
 
typedef std::unordered_map< L, int, H > NextMap
 

Public Member Functions

 NestedTrieTopology ()
 
 NestedTrieTopology (const NestedTrieTopology &that)
 
 ~NestedTrieTopology ()
 
void swap (NestedTrieTopology &that)
 
NestedTrieTopologyoperator= (const NestedTrieTopology &that)
 
bool operator== (const NestedTrieTopology &that) const
 
bool operator!= (const NestedTrieTopology &that) const
 
int Root () const
 
size_t NumNodes () const
 
int Insert (int parent, const L &label)
 
int Find (int parent, const L &label) const
 
const NextMapChildrenOf (int parent) const
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

template<class L, class H>
class fst::NestedTrieTopology< L, H >

Definition at line 20 of file trie.h.

Member Typedef Documentation

template<class L , class H >
typedef H fst::NestedTrieTopology< L, H >::Hash

Definition at line 63 of file trie.h.

template<class L , class H >
typedef L fst::NestedTrieTopology< L, H >::Label

Definition at line 62 of file trie.h.

template<class L , class H >
typedef std::unordered_map<L, int, H> fst::NestedTrieTopology< L, H >::NextMap

Definition at line 64 of file trie.h.

Constructor & Destructor Documentation

template<class L , class H >
fst::NestedTrieTopology< L, H >::NestedTrieTopology ( )

Definition at line 149 of file trie.h.

template<class L , class H >
fst::NestedTrieTopology< L, H >::NestedTrieTopology ( const NestedTrieTopology< L, H > &  that)

Definition at line 154 of file trie.h.

template<class L , class H >
fst::NestedTrieTopology< L, H >::~NestedTrieTopology ( )

Definition at line 163 of file trie.h.

Member Function Documentation

template<class L , class H >
const_iterator fst::NestedTrieTopology< L, H >::begin ( ) const
inline

Definition at line 139 of file trie.h.

template<class L , class H >
const NextMap& fst::NestedTrieTopology< L, H >::ChildrenOf ( int  parent) const
inline

Definition at line 134 of file trie.h.

template<class L , class H >
const_iterator fst::NestedTrieTopology< L, H >::end ( ) const
inline

Definition at line 140 of file trie.h.

template<class L , class H >
int fst::NestedTrieTopology< L, H >::Find ( int  parent,
const L &  label 
) const
inline

Definition at line 211 of file trie.h.

template<class L , class H >
int fst::NestedTrieTopology< L, H >::Insert ( int  parent,
const L &  label 
)
inline

Definition at line 200 of file trie.h.

template<class L , class H >
size_t fst::NestedTrieTopology< L, H >::NumNodes ( ) const
inline

Definition at line 131 of file trie.h.

template<class L , class H >
bool fst::NestedTrieTopology< L, H >::operator!= ( const NestedTrieTopology< L, H > &  that) const
inline

Definition at line 194 of file trie.h.

template<class L , class H >
NestedTrieTopology< L, H > & fst::NestedTrieTopology< L, H >::operator= ( const NestedTrieTopology< L, H > &  that)
inline

Definition at line 177 of file trie.h.

template<class L , class H >
bool fst::NestedTrieTopology< L, H >::operator== ( const NestedTrieTopology< L, H > &  that) const
inline

Definition at line 185 of file trie.h.

template<class L , class H >
std::istream & fst::NestedTrieTopology< L, H >::Read ( std::istream &  strm)
inline

Definition at line 217 of file trie.h.

template<class L , class H >
int fst::NestedTrieTopology< L, H >::Root ( ) const
inline

Definition at line 130 of file trie.h.

template<class L , class H >
void fst::NestedTrieTopology< L, H >::swap ( NestedTrieTopology< L, H > &  that)
inline

Definition at line 172 of file trie.h.

template<class L , class H >
std::ostream & fst::NestedTrieTopology< L, H >::Write ( std::ostream &  strm) const
inline

Definition at line 229 of file trie.h.


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