RandomAccessTableReader< Holder > Class Template Reference

Allows random access to a collection of objects in an archive or script file; see The Table concept. More...

#include <kaldi-table.h>

Collaboration diagram for RandomAccessTableReader< Holder >:

Public Types

typedef Holder::T T
 

Public Member Functions

 RandomAccessTableReader ()
 
 RandomAccessTableReader (const std::string &rspecifier)
 
bool Open (const std::string &rspecifier)
 
bool IsOpen () const
 
bool Close ()
 
bool HasKey (const std::string &key)
 
const TValue (const std::string &key)
 
 ~RandomAccessTableReader ()
 
 RandomAccessTableReader (const RandomAccessTableReader< Holder > &other)
 

Private Member Functions

RandomAccessTableReaderoperator= (const RandomAccessTableReader< Holder > &)
 
void CheckImpl () const
 

Private Attributes

RandomAccessTableReaderImplBase< Holder > * impl_
 

Detailed Description

template<class Holder>
class kaldi::RandomAccessTableReader< Holder >

Allows random access to a collection of objects in an archive or script file; see The Table concept.

Definition at line 233 of file kaldi-table.h.

Member Typedef Documentation

◆ T

typedef Holder::T T

Definition at line 235 of file kaldi-table.h.

Constructor & Destructor Documentation

◆ RandomAccessTableReader() [1/2]

Definition at line 237 of file kaldi-table.h.

237 : impl_(NULL) { }
RandomAccessTableReaderImplBase< Holder > * impl_
Definition: kaldi-table.h:279

◆ RandomAccessTableReader() [2/2]

RandomAccessTableReader ( const RandomAccessTableReader< Holder > &  other)
inline

Definition at line 271 of file kaldi-table.h.

272  :
273  impl_(NULL) { KALDI_ASSERT(other.impl_ == NULL); }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185
RandomAccessTableReaderImplBase< Holder > * impl_
Definition: kaldi-table.h:279

Member Function Documentation

◆ IsOpen()

bool IsOpen ( ) const
inline

Definition at line 247 of file kaldi-table.h.

Referenced by kaldi::AccCmvnStatsWrapper(), kaldi::AccumulateForUtterance(), main(), and kaldi::ReadData().

247 { return (impl_ != NULL); }
RandomAccessTableReaderImplBase< Holder > * impl_
Definition: kaldi-table.h:279

◆ operator=()

RandomAccessTableReader& operator= ( const RandomAccessTableReader< Holder > &  )
private

Member Data Documentation

◆ impl_


The documentation for this class was generated from the following files: