ComparePair Struct Reference
Inheritance diagram for ComparePair:
Collaboration diagram for ComparePair:

Public Member Functions

 ComparePair (const std::pair< int32, int32 > &correct_pair)
 
bool operator() (std::pair< int32, int32 > const &arg)
 

Public Attributes

std::pair< int32, int32correct_pair_
 

Detailed Description

Definition at line 26 of file nnet-compile-utils-test.cc.

Constructor & Destructor Documentation

◆ ComparePair()

ComparePair ( const std::pair< int32, int32 > &  correct_pair)
inlineexplicit

Definition at line 28 of file nnet-compile-utils-test.cc.

Referenced by kaldi::nnet3::UnitTestSplitLocations(), and kaldi::nnet3::UnitTestSplitLocationsBackward().

28  :
29  correct_pair_(correct_pair) {}
std::pair< int32, int32 > correct_pair_

Member Function Documentation

◆ operator()()

bool operator() ( std::pair< int32, int32 > const &  arg)
inline

Definition at line 30 of file nnet-compile-utils-test.cc.

References ComparePair::correct_pair_.

31  { return (arg.first == correct_pair_.first) &&
32  (arg.second == correct_pair_.second); }
std::pair< int32, int32 > correct_pair_

Member Data Documentation

◆ correct_pair_

std::pair<int32, int32> correct_pair_

Definition at line 33 of file nnet-compile-utils-test.cc.

Referenced by ComparePair::operator()().


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