#include <kaldi-table-inl.h>
Public Types | |
typedef Holder::T | T |
Public Types inherited from RandomAccessTableReaderImplBase< Holder > | |
typedef Holder::T | T |
Public Member Functions | |
RandomAccessTableReaderScriptImpl () | |
virtual bool | Open (const std::string &rspecifier) |
virtual bool | IsOpen () const |
virtual bool | Close () |
virtual bool | HasKey (const std::string &key) |
virtual const T & | Value (const std::string &key) |
virtual | ~RandomAccessTableReaderScriptImpl () |
Public Member Functions inherited from RandomAccessTableReaderImplBase< Holder > | |
virtual | ~RandomAccessTableReaderImplBase () |
Private Types | |
enum | { kUninitialized, kNotReadScript, kNotHaveObject, kHaveObject, kHaveRange } |
Private Member Functions | |
virtual bool | HasKeyInternal (const std::string &key, bool preload) |
bool | LookupKey (const std::string &key, size_t *script_offset) |
Private Attributes | |
Input | input_ |
RspecifierOptions | opts_ |
std::string | rspecifier_ |
std::string | script_rxfilename_ |
std::string | key_ |
Holder | holder_ |
Holder | range_holder_ |
std::string | range_ |
std::string | data_rxfilename_ |
std::vector< std::pair< std::string, std::string > > | script_ |
size_t | last_found_ |
enum kaldi::RandomAccessTableReaderScriptImpl:: { ... } | state_ |
Definition at line 1593 of file kaldi-table-inl.h.
typedef Holder::T T |
Definition at line 1596 of file kaldi-table-inl.h.
|
private |
Enumerator | |
---|---|
kUninitialized | |
kNotReadScript | |
kNotHaveObject | |
kHaveObject | |
kHaveRange |
Definition at line 1863 of file kaldi-table-inl.h.
|
inline |
Definition at line 1598 of file kaldi-table-inl.h.
|
inlinevirtual |
Definition at line 1693 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 1652 of file kaldi-table-inl.h.
References TableWriter< Holder >::IsOpen(), and KALDI_ERR.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 1669 of file kaldi-table-inl.h.
Definition at line 1703 of file kaldi-table-inl.h.
References kaldi::ExtractRangeSpecifier(), kaldi::IsToken(), KALDI_ASSERT, KALDI_ERR, KALDI_WARN, and kaldi::PrintableRxfilename().
|
inlinevirtual |
Definition at line 1647 of file kaldi-table-inl.h.
Definition at line 1802 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 1600 of file kaldi-table-inl.h.
References kaldi::ClassifyRspecifier(), rnnlm::i, KALDI_ASSERT, KALDI_ERR, KALDI_WARN, kaldi::kScriptRspecifier, kaldi::PrintableRxfilename(), and kaldi::ReadScriptFile().
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 1679 of file kaldi-table-inl.h.
References KALDI_ASSERT, and KALDI_ERR.
|
private |
Definition at line 1849 of file kaldi-table-inl.h.
|
private |
Definition at line 1843 of file kaldi-table-inl.h.
|
private |
Definition at line 1831 of file kaldi-table-inl.h.
|
private |
Definition at line 1839 of file kaldi-table-inl.h.
|
private |
Definition at line 1861 of file kaldi-table-inl.h.
|
private |
Definition at line 1834 of file kaldi-table-inl.h.
|
private |
Definition at line 1847 of file kaldi-table-inl.h.
|
private |
Definition at line 1844 of file kaldi-table-inl.h.
|
private |
Definition at line 1835 of file kaldi-table-inl.h.
|
private |
Definition at line 1860 of file kaldi-table-inl.h.
|
private |
Definition at line 1837 of file kaldi-table-inl.h.
enum { ... } state_ |