#include <determinize-lattice-inl.h>
Classes | |
struct | Entry |
class | EntryEqual |
class | EntryKey |
Public Member Functions | |
const Entry * | EmptyString () |
const Entry * | Successor (const Entry *parent, IntType i) |
const Entry * | Concatenate (const Entry *a, const Entry *b) |
const Entry * | CommonPrefix (const Entry *a, const Entry *b) |
void | ReduceToCommonPrefix (const Entry *a, std::vector< IntType > *b) |
const Entry * | RemovePrefix (const Entry *a, size_t n) |
bool | IsPrefixOf (const Entry *a, const Entry *b) const |
size_t | Size (const Entry *entry) const |
void | ConvertToVector (const Entry *entry, std::vector< IntType > *out) const |
const Entry * | ConvertFromVector (const std::vector< IntType > &vec) |
LatticeStringRepository () | |
void | Destroy () |
void | Rebuild (const std::vector< const Entry *> &to_keep) |
~LatticeStringRepository () | |
int32 | MemSize () const |
Private Types | |
typedef std::unordered_set< const Entry *, EntryKey, EntryEqual > | SetType |
Private Member Functions | |
void | RebuildHelper (const Entry *to_add, SetType *tmp_set) |
KALDI_DISALLOW_COPY_AND_ASSIGN (LatticeStringRepository) | |
Private Attributes | |
Entry * | new_entry_ |
SetType | set_ |
Definition at line 37 of file determinize-lattice-inl.h.
|
private |
Definition at line 223 of file determinize-lattice-inl.h.
|
inline |
Definition at line 169 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::Entry(), and LatticeStringRepository< IntType >::new_entry_.
|
inline |
Definition at line 203 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Destroy().
Definition at line 83 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::ConvertToVector(), LatticeStringRepository< IntType >::Entry::i, and LatticeStringRepository< IntType >::Successor().
Referenced by fst::TestLatticeStringRepository().
Definition at line 73 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::ConvertToVector(), LatticeStringRepository< IntType >::Entry::i, and LatticeStringRepository< IntType >::Successor().
|
inline |
Definition at line 162 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::i, and LatticeStringRepository< IntType >::Successor().
|
inline |
Definition at line 149 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::i, LatticeStringRepository< IntType >::Entry::parent, and LatticeStringRepository< IntType >::Size().
Referenced by LatticeStringRepository< IntType >::CommonPrefix(), LatticeStringRepository< IntType >::Concatenate(), LatticeStringRepository< IntType >::RemovePrefix(), and fst::TestLatticeStringRepository().
|
inline |
Definition at line 171 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::new_entry_, and LatticeStringRepository< IntType >::set_.
Referenced by LatticeStringRepository< IntType >::~LatticeStringRepository().
|
inline |
Definition at line 52 of file determinize-lattice-inl.h.
Referenced by fst::TestLatticeStringRepository().
Definition at line 132 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::parent.
Referenced by fst::TestLatticeStringRepository().
|
private |
|
inline |
Definition at line 204 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::Entry(), and LatticeStringRepository< IntType >::set_.
|
inline |
Definition at line 188 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::RebuildHelper(), and LatticeStringRepository< IntType >::set_.
Definition at line 225 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::KALDI_DISALLOW_COPY_AND_ASSIGN(), and LatticeStringRepository< IntType >::Entry::parent.
Referenced by LatticeStringRepository< IntType >::Rebuild().
|
inline |
Definition at line 96 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::i, LatticeStringRepository< IntType >::Entry::parent, and LatticeStringRepository< IntType >::Size().
Referenced by fst::TestLatticeStringRepository().
Definition at line 117 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::ConvertToVector(), LatticeStringRepository< IntType >::Entry::i, rnnlm::n, and LatticeStringRepository< IntType >::Successor().
Definition at line 140 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::parent.
Referenced by LatticeStringRepository< IntType >::ConvertToVector(), and LatticeStringRepository< IntType >::ReduceToCommonPrefix().
Definition at line 56 of file determinize-lattice-inl.h.
References LatticeStringRepository< IntType >::Entry::Entry(), LatticeStringRepository< IntType >::Entry::i, LatticeStringRepository< IntType >::new_entry_, LatticeStringRepository< IntType >::Entry::parent, and LatticeStringRepository< IntType >::set_.
Referenced by LatticeStringRepository< IntType >::CommonPrefix(), LatticeStringRepository< IntType >::Concatenate(), LatticeStringRepository< IntType >::ConvertFromVector(), LatticeStringRepository< IntType >::RemovePrefix(), and fst::TestLatticeStringRepository().
|
private |
Definition at line 239 of file determinize-lattice-inl.h.
Referenced by LatticeStringRepository< IntType >::Destroy(), LatticeStringRepository< IntType >::LatticeStringRepository(), and LatticeStringRepository< IntType >::Successor().
|
private |
Definition at line 241 of file determinize-lattice-inl.h.
Referenced by LatticeStringRepository< IntType >::Destroy(), LatticeStringRepository< IntType >::MemSize(), LatticeStringRepository< IntType >::Rebuild(), and LatticeStringRepository< IntType >::Successor().