All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TableWriter< Holder > Class Template Reference

A templated class for writing objects to an archive or script file; see The Table concept. More...

#include <kaldi-table.h>

Collaboration diagram for TableWriter< Holder >:

Public Types

typedef Holder::T T
 

Public Member Functions

 TableWriter ()
 
 TableWriter (const std::string &wspecifier)
 
bool Open (const std::string &wspecifier)
 
bool IsOpen () const
 
void Write (const std::string &key, const T &value) const
 
void Flush ()
 
bool Close ()
 
 ~TableWriter ()
 
 TableWriter (const TableWriter &other)
 

Private Member Functions

TableWriteroperator= (const TableWriter &)
 
void CheckImpl () const
 

Private Attributes

TableWriterImplBase< Holder > * impl_
 

Detailed Description

template<class Holder>
class kaldi::TableWriter< Holder >

A templated class for writing objects to an archive or script file; see The Table concept.

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

Member Typedef Documentation

typedef Holder::T T

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

Constructor & Destructor Documentation

TableWriter ( )
inline

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

370 : impl_(NULL) { }
TableWriterImplBase< Holder > * impl_
Definition: kaldi-table.h:413
TableWriter ( const TableWriter< Holder > &  other)
inline

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

References TableWriter< Holder >::impl_, and KALDI_ASSERT.

405  : impl_(NULL) {
406  KALDI_ASSERT(other.impl_ == NULL);
407  }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:169
TableWriterImplBase< Holder > * impl_
Definition: kaldi-table.h:413

Member Function Documentation

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

Member Data Documentation

TableWriterImplBase<Holder>* impl_
private

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

Referenced by TableWriter< Holder >::TableWriter().


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