A Holder for a vector of basic types, e.g. More...
#include <kaldi-holder-inl.h>
Public Types | |
typedef std::vector< BasicType > | T |
Public Member Functions | |
BasicVectorHolder () | |
void | Clear () |
bool | Read (std::istream &is) |
T & | Value () |
void | Swap (BasicVectorHolder< BasicType > *other) |
bool | ExtractRange (const BasicVectorHolder< BasicType > &other, const std::string &range) |
~BasicVectorHolder () | |
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 (BasicVectorHolder) | |
Private Attributes | |
T | t_ |
A Holder for a vector of basic types, e.g.
std::vector<int32>, std::vector<float>, and so on. 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 224 of file kaldi-holder-inl.h.
typedef std::vector<BasicType> T |
Definition at line 226 of file kaldi-holder-inl.h.
|
inline |
Definition at line 228 of file kaldi-holder-inl.h.
|
inline |
Definition at line 331 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::KALDI_DISALLOW_COPY_AND_ASSIGN().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 317 of file kaldi-holder-inl.h.
|
private |
|
inline |
Definition at line 263 of file kaldi-holder-inl.h.
References kaldi::InitKaldiInputStream(), KALDI_WARN, kaldi::ReadBasicType(), and KaldiObjectHolder< KaldiType >::t_.
|
inline |
Definition at line 321 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::t_, and BasicVectorHolder< BasicType >::t_.
|
inline |
Definition at line 230 of file kaldi-holder-inl.h.
References kaldi::InitKaldiOutputStream(), KALDI_ASSERT, KALDI_WARN, and kaldi::WriteBasicType().
|
private |
Definition at line 334 of file kaldi-holder-inl.h.
Referenced by BasicVectorHolder< BasicType >::Swap().