17#ifndef BACKENDS_COMMON_METERMAP_H_ 
   18#define BACKENDS_COMMON_METERMAP_H_ 
   28        const IR::Expression *destinationField;
 
   29        const IR::P4Table *table;
 
   32        DirectMeterInfo() : destinationField(
nullptr), table(
nullptr), tableSize(0) {}
 
 
   37    std::map<const IR::IDeclaration *, DirectMeterInfo *> directMeter;
 
 
The Declaration interface, representing objects with names.
Definition declaration.h:26
 
Definition common/metermap.h:25
 
void setSize(const IR::IDeclaration *meter, unsigned size)
Set the size of the table that a meter is attached to.
Definition common/metermap.cpp:80
 
void setDestination(const IR::IDeclaration *meter, const IR::Expression *destination)
Set the destination that a meter is attached to??
Definition common/metermap.cpp:63
 
void setTable(const IR::IDeclaration *meter, const IR::P4Table *table)
Set the table that a direct meter is attached to.
Definition common/metermap.cpp:34
 
Definition applyOptionsPragmas.cpp:24
 
Definition common/metermap.h:27