#include <cluster-utils.h>

Collaboration diagram for RefineClustersOptions:

Public Member Functions

 RefineClustersOptions ()
 
 RefineClustersOptions (int32 num_iters_in, int32 top_n_in)
 
void Write (std::ostream &os, bool binary) const
 
void Read (std::istream &is, bool binary)
 

Public Attributes

int32 num_iters
 
int32 top_n
 

Detailed Description

Definition at line 129 of file cluster-utils.h.

Constructor & Destructor Documentation

◆ RefineClustersOptions() [1/2]

◆ RefineClustersOptions() [2/2]

Member Function Documentation

◆ Read()

void Read ( std::istream &  is,
bool  binary 
)

Definition at line 1283 of file cluster-utils.cc.

References kaldi::ExpectToken(), and kaldi::ReadBasicType().

Referenced by QuestionsForKey::Read(), and RefineClustersOptions::RefineClustersOptions().

1283  {
1284  ExpectToken(is, binary, "<RefineClustersOptions>");
1285  ReadBasicType(is, binary, &num_iters);
1286  ReadBasicType(is, binary, &top_n);
1287  ExpectToken(is, binary, "</RefineClustersOptions>");
1288 }
void ReadBasicType(std::istream &is, bool binary, T *t)
ReadBasicType is the name of the read function for bool, integer types, and floating-point types...
Definition: io-funcs-inl.h:55
void ExpectToken(std::istream &is, bool binary, const char *token)
ExpectToken tries to read in the given token, and throws an exception on failure. ...
Definition: io-funcs.cc:191

◆ Write()

void Write ( std::ostream &  os,
bool  binary 
) const

Definition at line 1276 of file cluster-utils.cc.

References kaldi::WriteBasicType(), and kaldi::WriteToken().

Referenced by RefineClustersOptions::RefineClustersOptions(), and QuestionsForKey::Write().

1276  {
1277  WriteToken(os, binary, "<RefineClustersOptions>");
1278  WriteBasicType(os, binary, num_iters);
1279  WriteBasicType(os, binary, top_n);
1280  WriteToken(os, binary, "</RefineClustersOptions>");
1281 }
void WriteToken(std::ostream &os, bool binary, const char *token)
The WriteToken functions are for writing nonempty sequences of non-space characters.
Definition: io-funcs.cc:134
void WriteBasicType(std::ostream &os, bool binary, T t)
WriteBasicType is the name of the write function for bool, integer types, and floating-point types...
Definition: io-funcs-inl.h:34

Member Data Documentation

◆ num_iters

◆ top_n

int32 top_n

Definition at line 131 of file cluster-utils.h.

Referenced by kaldi::TestRefineClusters().


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