P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Pattern Class Reference

#include <pattern.h>

Classes

class  Match
 

Public Member Functions

 Pattern (big_int v)
 
template<class T >
 Pattern (const T *&m)
 
 Pattern (int v)
 
template<class T >
 Pattern (Match< T > &m)
 
bool match (const IR::Node *n)
 
Pattern operator! () const
 
Pattern operator!= (const Pattern &r) const
 
Pattern operator% (const Pattern &r) const
 
Pattern operator& (const Pattern &r) const
 
Pattern operator&& (const Pattern &r) const
 
Pattern operator* (const Pattern &r) const
 
Pattern operator+ (const Pattern &r) const
 
Pattern operator- () const
 
Pattern operator- (const Pattern &r) const
 
Pattern operator/ (const Pattern &r) const
 
Pattern operator< (const Pattern &r) const
 
Pattern operator<< (const Pattern &r) const
 
Pattern operator<= (const Pattern &r) const
 
Pattern operator== (const Pattern &r) const
 
Pattern operator> (const Pattern &r) const
 
Pattern operator>= (const Pattern &r) const
 
Pattern operator>> (const Pattern &r) const
 
Pattern operator^ (const Pattern &r) const
 
Pattern operator| (const Pattern &r) const
 
Pattern operator|| (const Pattern &r) const
 
Pattern operator~ () const
 
Pattern Relation (const Pattern &r) const
 

Detailed Description

Pattern matcher for IR::Expression trees.

Build pattern expressions with Pattern to match subtrees or leaves, and combine them with C++ operators to build larger patterns that can match tree fragments