#include <kaldi-table-inl.h>
Public Types | |
typedef Holder::T | T |
Public Types inherited from SequentialTableReaderImplBase< Holder > | |
typedef Holder::T | T |
Public Member Functions | |
SequentialTableReaderBackgroundImpl (SequentialTableReaderImplBase< Holder > *base_reader) | |
virtual bool | Open (const std::string &rxfilename) |
virtual bool | IsOpen () const |
void | RunInBackground () |
virtual bool | Done () const |
virtual std::string | Key () |
virtual T & | Value () |
void | SwapHolder (Holder *other_holder) |
virtual void | FreeCurrent () |
virtual void | Next () |
virtual bool | Close () |
~SequentialTableReaderBackgroundImpl () | |
Public Member Functions inherited from SequentialTableReaderImplBase< Holder > | |
SequentialTableReaderImplBase () | |
virtual | ~SequentialTableReaderImplBase () |
Static Public Member Functions | |
static void | run (SequentialTableReaderBackgroundImpl< Holder > *object) |
Private Attributes | |
std::string | key_ |
Holder | holder_ |
Semaphore | consumer_sem_ |
Semaphore | producer_sem_ |
std::thread | thread_ |
SequentialTableReaderImplBase< Holder > * | base_reader_ |
Definition at line 702 of file kaldi-table-inl.h.
typedef Holder::T T |
Definition at line 705 of file kaldi-table-inl.h.
|
inline |
Definition at line 707 of file kaldi-table-inl.h.
|
inline |
Definition at line 835 of file kaldi-table-inl.h.
References SequentialTableReaderImplBase< Holder >::Close(), and KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 816 of file kaldi-table-inl.h.
References KALDI_ASSERT.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 771 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 787 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 727 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 774 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 797 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 714 of file kaldi-table-inl.h.
References KALDI_ASSERT, and SequentialTableReaderImplBase< Holder >::Next().
|
inlinestatic |
Definition at line 768 of file kaldi-table-inl.h.
|
inline |
Definition at line 733 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 784 of file kaldi-table-inl.h.
References KALDI_ERR.
|
inlinevirtual |
Implements SequentialTableReaderImplBase< Holder >.
Definition at line 779 of file kaldi-table-inl.h.
References KALDI_ERR.
|
private |
Definition at line 852 of file kaldi-table-inl.h.
|
private |
Definition at line 849 of file kaldi-table-inl.h.
|
private |
Definition at line 845 of file kaldi-table-inl.h.
|
private |
Definition at line 844 of file kaldi-table-inl.h.
|
private |
Definition at line 850 of file kaldi-table-inl.h.
|
private |
Definition at line 851 of file kaldi-table-inl.h.