#include <kaldi-table-inl.h>
Public Types | |
typedef Holder::T | T |
Public Types inherited from SequentialTableReaderImplBase< Holder > | |
typedef Holder::T | T |
Public Member Functions | |
SequentialTableReaderScriptImpl () | |
virtual bool | Open (const std::string &rspecifier) |
virtual bool | IsOpen () const |
virtual bool | Done () const |
virtual std::string | Key () |
T & | Value () |
void | FreeCurrent () |
void | SwapHolder (Holder *other_holder) |
void | Next () |
virtual bool | Close () |
virtual | ~SequentialTableReaderScriptImpl () |
Public Member Functions inherited from SequentialTableReaderImplBase< Holder > | |
SequentialTableReaderImplBase () | |
virtual | ~SequentialTableReaderImplBase () |
Private Types | |
enum | StateType { kUninitialized, kFileStart, kEof, kError, kHaveScpLine, kHaveObject, kHaveRange } |
Private Member Functions | |
bool | EnsureObjectLoaded () |
void | SetErrorState () |
void | NextScpLine () |
Private Attributes | |
std::string | rspecifier_ |
RspecifierOptions | opts_ |
std::string | script_rxfilename_ |
Input | script_input_ |
Input | data_input_ |
Holder | holder_ |
Holder | range_holder_ |
std::string | key_ |
std::string | data_rxfilename_ |
std::string | range_ |
enum kaldi::SequentialTableReaderScriptImpl::StateType | state_ |
Definition at line 86 of file kaldi-table-inl.h.
typedef Holder::T T |
Definition at line 89 of file kaldi-table-inl.h.
|
private |
Enumerator | |
---|---|
kUninitialized | |
kFileStart | |
kEof | |
kError | |
kHaveScpLine | |
kHaveObject | |
kHaveRange |
Definition at line 449 of file kaldi-table-inl.h.
|
inline |
Definition at line 91 of file kaldi-table-inl.h.
|
inlinevirtual |
Definition at line 277 of file kaldi-table-inl.h.
References SequentialTableReaderImplBase< Holder >::Close(), SequentialTableReaderImplBase< Holder >::IsOpen(), KALDI_ERR, and kaldi::PrintableRxfilename().
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 244 of file kaldi-table-inl.h.
References SequentialTableReaderImplBase< Holder >::IsOpen(), KALDI_ERR, and KALDI_WARN.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 140 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlineprivate |
Definition at line 296 of file kaldi-table-inl.h.
References KALDI_ASSERT, KALDI_ERR, KALDI_WARN, and kaldi::PrintableRxfilename().
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 179 of file kaldi-table-inl.h.
References KALDI_WARN.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 127 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 151 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 223 of file kaldi-table-inl.h.
References SequentialTableReaderImplBase< Holder >::Done().
|
inlineprivate |
Definition at line 361 of file kaldi-table-inl.h.
References kaldi::ExtractRangeSpecifier(), KALDI_ERR, KALDI_WARN, and kaldi::SplitStringOnFirstSpace().
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 95 of file kaldi-table-inl.h.
References kaldi::ClassifyRspecifier(), SequentialTableReaderImplBase< Holder >::Close(), KALDI_ASSERT, KALDI_ERR, KALDI_WARN, kaldi::kScriptRspecifier, SequentialTableReaderImplBase< Holder >::Next(), and kaldi::PrintableRxfilename().
|
inlineprivate |
Definition at line 350 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 191 of file kaldi-table-inl.h.
References KALDI_ERR, and SequentialTableReaderImplBase< Holder >::Value().
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 162 of file kaldi-table-inl.h.
References KALDI_ASSERT, KALDI_ERR, and kaldi::PrintableRxfilename().
|
private |
Definition at line 430 of file kaldi-table-inl.h.
|
private |
Definition at line 445 of file kaldi-table-inl.h.
|
private |
Definition at line 435 of file kaldi-table-inl.h.
|
private |
Definition at line 444 of file kaldi-table-inl.h.
|
private |
Definition at line 426 of file kaldi-table-inl.h.
|
private |
Definition at line 446 of file kaldi-table-inl.h.
|
private |
Definition at line 436 of file kaldi-table-inl.h.
|
private |
Definition at line 425 of file kaldi-table-inl.h.
|
private |
Definition at line 429 of file kaldi-table-inl.h.
|
private |
Definition at line 427 of file kaldi-table-inl.h.
|
private |