#include <gmock-matchers.h>
Definition at line 3609 of file gmock-matchers.h.
◆ MatchMatrix()
testing::internal::MatchMatrix::MatchMatrix |
( |
size_t | num_elements, |
|
|
size_t | num_matchers ) |
|
inline |
Definition at line 3611 of file gmock-matchers.h.
3612 : num_elements_(num_elements),
3613 num_matchers_(num_matchers),
3614 matched_(num_elements_* num_matchers_, 0) {
3615 }
◆ DebugString()
std::string testing::internal::MatchMatrix::DebugString |
( |
| ) |
const |
Definition at line 381 of file gmock-matchers.cc.
381 {
382 ::std::stringstream
ss;
383 const char* sep = "";
384 for (
size_t i = 0; i <
LhsSize(); ++i) {
388 }
389 sep = ";";
390 }
392}
bool HasEdge(size_t ilhs, size_t irhs) const
static const Segment ss(Segment::ss)
◆ HasEdge()
bool testing::internal::MatchMatrix::HasEdge |
( |
size_t | ilhs, |
|
|
size_t | irhs ) const |
|
inline |
Definition at line 3619 of file gmock-matchers.h.
3619 {
3620 return matched_[SpaceIndex(ilhs, irhs)] == 1;
3621 }
◆ LhsSize()
size_t testing::internal::MatchMatrix::LhsSize |
( |
| ) |
const |
|
inline |
◆ NextGraph()
bool testing::internal::MatchMatrix::NextGraph |
( |
| ) |
|
Definition at line 358 of file gmock-matchers.cc.
358 {
359 for (
size_t ilhs = 0; ilhs <
LhsSize(); ++ilhs) {
360 for (
size_t irhs = 0; irhs <
RhsSize(); ++irhs) {
361 char& b = matched_[SpaceIndex(ilhs, irhs)];
362 if (!b) {
363 b = 1;
364 return true;
365 }
366 b = 0;
367 }
368 }
369 return false;
370}
◆ Randomize()
void testing::internal::MatchMatrix::Randomize |
( |
| ) |
|
Definition at line 372 of file gmock-matchers.cc.
372 {
373 for (
size_t ilhs = 0; ilhs <
LhsSize(); ++ilhs) {
374 for (
size_t irhs = 0; irhs <
RhsSize(); ++irhs) {
375 char& b = matched_[SpaceIndex(ilhs, irhs)];
376 b = static_cast<char>(rand() & 1);
377 }
378 }
379}
◆ RhsSize()
size_t testing::internal::MatchMatrix::RhsSize |
( |
| ) |
const |
|
inline |
◆ SetEdge()
void testing::internal::MatchMatrix::SetEdge |
( |
size_t | ilhs, |
|
|
size_t | irhs, |
|
|
bool | b ) |
|
inline |
Definition at line 3622 of file gmock-matchers.h.
3622 {
3623 matched_[SpaceIndex(ilhs, irhs)] = b ? 1 : 0;
3624 }
The documentation for this class was generated from the following files:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googlemock/src/gmock-matchers.cc