|
My Project
|
#include <PatternMatch.h>
Public Member Functions | |
| PatternBenefit (unsigned benefit) | |
| PatternBenefit (const PatternBenefit &)=default | |
| PatternBenefit & | operator= (const PatternBenefit &)=default |
| bool | isImpossibleToMatch () const |
| unsigned short | getBenefit () const |
| If the corresponding pattern can match, return its benefit. If the. More... | |
| bool | operator== (const PatternBenefit &rhs) const |
| bool | operator!= (const PatternBenefit &rhs) const |
| bool | operator< (const PatternBenefit &rhs) const |
Static Public Member Functions | |
| static PatternBenefit | impossibleToMatch () |
This class represents the benefit of a pattern match in a unitless scheme that ranges from 0 (very little benefit) to 65K. The most common unit to use here is the "number of operations matched" by the pattern.
This also has a sentinel representation that can be used for patterns that fail to match.
| PatternBenefit::PatternBenefit | ( | unsigned | benefit | ) |
|
default |
| unsigned short PatternBenefit::getBenefit | ( | ) | const |
If the corresponding pattern can match, return its benefit. If the.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
1.8.13