All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

typedef Holder::T T

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

Constructor & Destructor Documentation

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

237 : impl_(NULL) { }
RandomAccessTableReaderImplBase< Holder > * impl_
Definition: kaldi-table.h:279
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:169
RandomAccessTableReaderImplBase< Holder > * impl_
Definition: kaldi-table.h:279

Member Function Documentation

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
RandomAccessTableReader& operator= ( const RandomAccessTableReader< Holder > &  )
private

Member Data Documentation


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