BasicVectorVectorHolder is a Holder for a vector of vector of a basic type, e.g. More...
#include <kaldi-holder-inl.h>
Public Types | |
typedef std::vector< std::vector< BasicType > > | T |
Public Member Functions | |
BasicVectorVectorHolder () | |
void | Clear () |
bool | Read (std::istream &is) |
T & | Value () |
void | Swap (BasicVectorVectorHolder< BasicType > *other) |
bool | ExtractRange (BasicVectorVectorHolder< BasicType > &other, const std::string &range) |
~BasicVectorVectorHolder () | |
Static Public Member Functions | |
static bool | Write (std::ostream &os, bool binary, const T &t) |
static bool | IsReadInBinary () |
Private Member Functions | |
KALDI_DISALLOW_COPY_AND_ASSIGN (BasicVectorVectorHolder) | |
Private Attributes | |
T | t_ |
BasicVectorVectorHolder is a Holder for a vector of vector of a basic type, e.g.
std::vector<std::vector<int32> >. Note: a basic type is defined as a type for which ReadBasicType and WriteBasicType are implemented, i.e. integer and floating types, and bool.
Definition at line 343 of file kaldi-holder-inl.h.
typedef std::vector<std::vector<BasicType> > T |
Definition at line 345 of file kaldi-holder-inl.h.
|
inline |
Definition at line 347 of file kaldi-holder-inl.h.
|
inline |
Definition at line 482 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::KALDI_DISALLOW_COPY_AND_ASSIGN().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 468 of file kaldi-holder-inl.h.
|
private |
|
inline |
Definition at line 399 of file kaldi-holder-inl.h.
References rnnlm::i, kaldi::InitKaldiInputStream(), KALDI_WARN, kaldi::ReadBasicType(), and KaldiObjectHolder< KaldiType >::t_.
|
inline |
Definition at line 472 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::t_, and BasicVectorVectorHolder< BasicType >::t_.
|
inline |
Definition at line 349 of file kaldi-holder-inl.h.
References kaldi::InitKaldiOutputStream(), KALDI_ASSERT, KALDI_WARN, and kaldi::WriteBasicType().
|
private |
Definition at line 485 of file kaldi-holder-inl.h.
Referenced by BasicVectorVectorHolder< BasicType >::Swap().