BasicPairVectorHolder is a Holder for a vector of pairs of a basic type, e.g. More...
#include <kaldi-holder-inl.h>
Public Types | |
typedef std::vector< std::pair< BasicType, BasicType > > | T |
Public Member Functions | |
BasicPairVectorHolder () | |
void | Clear () |
bool | Read (std::istream &is) |
T & | Value () |
void | Swap (BasicPairVectorHolder< BasicType > *other) |
bool | ExtractRange (const BasicPairVectorHolder< BasicType > &other, const std::string &range) |
~BasicPairVectorHolder () | |
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 (BasicPairVectorHolder) | |
Private Attributes | |
T | t_ |
BasicPairVectorHolder is a Holder for a vector of pairs of a basic type, e.g.
std::vector<std::pair<int32, 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 494 of file kaldi-holder-inl.h.
typedef std::vector<std::pair<BasicType, BasicType> > T |
Definition at line 496 of file kaldi-holder-inl.h.
|
inline |
Definition at line 498 of file kaldi-holder-inl.h.
|
inline |
Definition at line 627 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::KALDI_DISALLOW_COPY_AND_ASSIGN().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 613 of file kaldi-holder-inl.h.
|
private |
|
inline |
Definition at line 539 of file kaldi-holder-inl.h.
References rnnlm::i, kaldi::InitKaldiInputStream(), KALDI_WARN, kaldi::ReadBasicType(), and KaldiObjectHolder< KaldiType >::t_.
|
inline |
Definition at line 617 of file kaldi-holder-inl.h.
References KaldiObjectHolder< KaldiType >::t_, and BasicPairVectorHolder< BasicType >::t_.
|
inline |
Definition at line 500 of file kaldi-holder-inl.h.
References kaldi::InitKaldiOutputStream(), KALDI_ASSERT, KALDI_WARN, and kaldi::WriteBasicType().
|
private |
Definition at line 630 of file kaldi-holder-inl.h.
Referenced by BasicPairVectorHolder< BasicType >::Swap().