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

#include <phv_fields.h>

Inheritance diagram for PHV::Constant:
[legend]

Public Member Functions

 Constant (const IR::Constant *value)
 
const PHV::Fieldfield () const override
 
const le_bitrangerange () const override
 
int size () const override
 
- Public Member Functions inherited from PHV::AbstractField
template<typename T >
const T & as () const
 
template<typename T >
bool is () const
 
template<typename T >
const T * to () const
 

Public Attributes

const IR::Constant * value
 

Additional Inherited Members

- Static Public Member Functions inherited from PHV::AbstractField
static AbstractFieldcreate (const PhvInfo &, const IR::Expression *)
 

Detailed Description

Represent a constant value in a field list.

Member Function Documentation

◆ field()

const PHV::Field * PHV::Constant::field ( ) const
inlineoverridevirtual

Implements PHV::AbstractField.

◆ range()

const le_bitrange & PHV::Constant::range ( ) const
inlineoverridevirtual

Implements PHV::AbstractField.

◆ size()

int PHV::Constant::size ( ) const
inlineoverridevirtual

Implements PHV::AbstractField.