Electroneum
testing::internal::MatchMatrix Class Reference

#include <gmock-matchers.h>

Public Member Functions

 MatchMatrix (size_t num_elements, size_t num_matchers)
 
size_t LhsSize () const
 
size_t RhsSize () const
 
bool HasEdge (size_t ilhs, size_t irhs) const
 
void SetEdge (size_t ilhs, size_t irhs, bool b)
 
bool NextGraph ()
 
void Randomize ()
 
string DebugString () const
 

Detailed Description

Definition at line 3257 of file gmock-matchers.h.

Constructor & Destructor Documentation

◆ MatchMatrix()

testing::internal::MatchMatrix::MatchMatrix ( size_t  num_elements,
size_t  num_matchers 
)
inline

Definition at line 3259 of file gmock-matchers.h.

3260  : num_elements_(num_elements),
3261  num_matchers_(num_matchers),
3262  matched_(num_elements_* num_matchers_, 0) {
3263  }

Member Function Documentation

◆ DebugString()

string testing::internal::MatchMatrix::DebugString ( ) const

◆ HasEdge()

bool testing::internal::MatchMatrix::HasEdge ( size_t  ilhs,
size_t  irhs 
) const
inline

Definition at line 3267 of file gmock-matchers.h.

3267  {
3268  return matched_[SpaceIndex(ilhs, irhs)] == 1;
3269  }

◆ LhsSize()

size_t testing::internal::MatchMatrix::LhsSize ( ) const
inline

Definition at line 3265 of file gmock-matchers.h.

3265 { return num_elements_; }
Here is the caller graph for this function:

◆ NextGraph()

bool testing::internal::MatchMatrix::NextGraph ( )

◆ Randomize()

void testing::internal::MatchMatrix::Randomize ( )

◆ RhsSize()

size_t testing::internal::MatchMatrix::RhsSize ( ) const
inline

Definition at line 3266 of file gmock-matchers.h.

3266 { return num_matchers_; }

◆ SetEdge()

void testing::internal::MatchMatrix::SetEdge ( size_t  ilhs,
size_t  irhs,
bool  b 
)
inline

Definition at line 3270 of file gmock-matchers.h.

3270  {
3271  matched_[SpaceIndex(ilhs, irhs)] = b ? 1 : 0;
3272  }

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