#include <kaldi-table-inl.h>
Public Member Functions | |
RandomAccessTableReaderUnsortedArchiveImpl () | |
virtual bool | Close () |
virtual bool | HasKey (const std::string &key) |
virtual const T & | Value (const std::string &key) |
virtual | ~RandomAccessTableReaderUnsortedArchiveImpl () |
Public Member Functions inherited from RandomAccessTableReaderArchiveImplBase< Holder > | |
RandomAccessTableReaderArchiveImplBase () | |
virtual bool | Open (const std::string &rspecifier) |
void | ReadNextObject () |
virtual bool | IsOpen () const |
bool | CloseInternal () |
~RandomAccessTableReaderArchiveImplBase () | |
Public Member Functions inherited from RandomAccessTableReaderImplBase< Holder > | |
virtual | ~RandomAccessTableReaderImplBase () |
Private Types | |
typedef Holder::T | T |
typedef unordered_map< std::string, Holder *, StringHasher > | MapType |
Private Member Functions | |
void | HandlePendingDelete () |
bool | FindKeyInternal (const std::string &key, const T **value_ptr=NULL) |
Private Attributes | |
MapType | map_ |
MapType::iterator | to_delete_iter_ |
bool | to_delete_iter_valid_ |
std::string | first_deleted_string_ |
Additional Inherited Members | |
Public Types inherited from RandomAccessTableReaderArchiveImplBase< Holder > | |
typedef Holder::T | T |
Public Types inherited from RandomAccessTableReaderImplBase< Holder > | |
typedef Holder::T | T |
Protected Types inherited from RandomAccessTableReaderArchiveImplBase< Holder > | |
enum | { kUninitialized, kNoObject, kHaveObject, kEof, kError } |
Protected Attributes inherited from RandomAccessTableReaderArchiveImplBase< Holder > | |
std::string | cur_key_ |
Holder * | holder_ |
std::string | rspecifier_ |
std::string | archive_rxfilename_ |
RspecifierOptions | opts_ |
enum kaldi::RandomAccessTableReaderArchiveImplBase:: { ... } | state_ |
Definition at line 2358 of file kaldi-table-inl.h.
|
private |
Definition at line 2492 of file kaldi-table-inl.h.
|
private |
Definition at line 2373 of file kaldi-table-inl.h.
|
inline |
Definition at line 2376 of file kaldi-table-inl.h.
|
inlinevirtual |
Definition at line 2406 of file kaldi-table-inl.h.
References TableWriter< Holder >::Close(), TableWriter< Holder >::IsOpen(), and KALDI_ERR.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 2382 of file kaldi-table-inl.h.
Definition at line 2435 of file kaldi-table-inl.h.
References KALDI_ASSERT, and KALDI_ERR.
|
inlineprivate |
Definition at line 2415 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 2394 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements RandomAccessTableReaderImplBase< Holder >.
Definition at line 2398 of file kaldi-table-inl.h.
References KALDI_ERR, and kaldi::PrintableRxfilename().
|
private |
Definition at line 2498 of file kaldi-table-inl.h.
|
private |
Definition at line 2493 of file kaldi-table-inl.h.
|
private |
Definition at line 2495 of file kaldi-table-inl.h.
|
private |
Definition at line 2496 of file kaldi-table-inl.h.