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

#include <simplifyKey.h>

Inheritance diagram for P4::OrPolicy:
[legend]

Public Member Functions

 OrPolicy (KeyIsSimple *left, KeyIsSimple *right)
 
bool isSimple (const IR::Expression *expression, const Visitor::Context *ctxt)
 
- Public Member Functions inherited from P4::KeyIsSimple

Detailed Description

A KeyIsSimple policy formed by combining two other policies with a logical 'or'.

Member Function Documentation

◆ isSimple()

bool P4::OrPolicy::isSimple ( const IR::Expression * expression,
const Visitor::Context * ctxt )
inlinevirtual

Implements P4::KeyIsSimple.