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 368 of file kaldi-table.h.

Member Typedef Documentation

◆ T

typedef Holder::T T

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

Constructor & Destructor Documentation

◆ TableWriter() [1/2]

TableWriter ( )
inline

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

372 : impl_(NULL) { }
TableWriterImplBase< Holder > * impl_
Definition: kaldi-table.h:414

◆ TableWriter() [2/2]

TableWriter ( const TableWriter< Holder > &  other)
inline

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

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

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ impl_


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