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

Indicates a statement in the program. More...

#include <def_use.h>

Inheritance diagram for P4::ProgramPoint:
[legend]

Public Member Functions

 ProgramPoint (const IR::Node *node)
 
 ProgramPoint (const ProgramPoint &context, const IR::Node *node)
 
 ProgramPoint (const ProgramPoint &other)
 
ProgramPoint after ()
 We use a nullptr to indicate a point after the previous context.
 
void assign (const IR::Node *node)
 
void assign (const ProgramPoint &context, const IR::Node *node)
 
auto begin () const
 
void clear ()
 
void dbprint (std::ostream &out) const override
 
auto end () const
 
std::size_t hash () const
 
bool isBeforeStart () const
 
const IR::Nodelast () const
 
ProgramPointoperator= (const ProgramPoint &)=default
 
ProgramPointoperator= (ProgramPoint &&)=default
 
bool operator== (const ProgramPoint &other) const
 
- Public Member Functions inherited from P4::IHasDbPrint
void print () const
 

Static Public Attributes

static ProgramPoint beforeStart
 A point logically before the function/control/action start.
 

Detailed Description

Indicates a statement in the program.

Member Function Documentation

◆ dbprint()

void P4::ProgramPoint::dbprint ( std::ostream & out) const
inlineoverridevirtual

Implements P4::IHasDbPrint.