class MatchMatrix

Defined at line 3722 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Connectivity matrix of (elements X matchers), in element-major order.

Initially, there are no edges.

Use NextGraph() to iterate over all possible edge configurations.

Use Randomize() to generate a random edge configuration.

Public Methods

void MatchMatrix (size_t num_elements, size_t num_matchers)

Defined at line 3724 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

size_t LhsSize ()

Defined at line 3729 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

size_t RhsSize ()

Defined at line 3730 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

bool HasEdge (size_t ilhs, size_t irhs)

Defined at line 3731 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

bool NextGraph ()

Treating the connectivity matrix as a (LhsSize()*RhsSize())-bit number,

adds 1 to that number; returns false if incrementing the graph left it

empty.

void Randomize ()
std::string DebugString ()
void SetEdge (size_t ilhs, size_t irhs, bool b)

Defined at line 3734 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h