P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Test::Match::Result Struct Reference

'Result' is used to report how a match has proceeded. More...

#include <bf_gtest_helpers.h>

Inheritance diagram for P4::Test::Match::Result:
[legend]

Public Member Functions

 Result (bool success, size_t pos, size_t count)
 
 Result (bool success, size_t pos, size_t count, std::smatch match)
 

Public Attributes

size_t count
 
std::vector< std::string > matches
 Match strings.
 
size_t pos
 
bool success
 true if the 'CheckList' was completed.
 

Friends

bool operator== (const Result &l, const Result &r)
 

Detailed Description

'Result' is used to report how a match has proceeded.

Member Data Documentation

◆ count

size_t P4::Test::Match::Result::count

tHe number of 'CheckList' item successfully matched.

◆ pos

size_t P4::Test::Match::Result::pos

the position in 'str' the match was successful to. N.B. 'pos' may be (one) beyond the end of 'str'!