All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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, int32 > correct_pair_
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

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

Member Function Documentation

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

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: