P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFN::CollectPipelines::Pipe Class Reference

#include <collect_pipelines.h>

Public Member Functions

bool operator< (const Pipe &) const
 A total order given by declaration names (i.e. consistent with ==).
 
bool operator== (const Pipe &) const
 

Public Attributes

const IR::Declaration_Instance * dec = nullptr
 
FullGress egress
 
const IR::BFN::TnaControl * ghost = nullptr
 
FullGress ingress
 

Friends

class CollectPipelines
 

Detailed Description

Description of Tofino pipeline with ingress, egress and possibly ghost. Comparable so that it can be put into std::map as a key or into std::set.

Member Function Documentation

◆ operator==()

bool BFN::CollectPipelines::Pipe::operator== ( const Pipe & other) const

Identity comparison. I.e. two pipes are the same if they arise from the same declaration.