17#ifndef BACKENDS_BMV2_COMMON_METERMAP_H_ 
   18#define BACKENDS_BMV2_COMMON_METERMAP_H_ 
   27        const IR::Expression *destinationField;
 
   28        const IR::P4Table *table;
 
   31        DirectMeterInfo() : destinationField(
nullptr), table(
nullptr), tableSize(0) {}
 
 
   36    std::map<const IR::IDeclaration *, DirectMeterInfo *> directMeter;
 
 
Definition bmv2/common/metermap.h:24
 
void setDestination(const IR::IDeclaration *meter, const IR::Expression *destination)
Set the destination that a meter is attached to??
Definition bmv2/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 bmv2/common/metermap.cpp:34
 
void setSize(const IR::IDeclaration *meter, unsigned size)
Set the size of the table that a meter is attached to.
Definition bmv2/common/metermap.cpp:80
 
The Declaration interface, representing objects with names.
Definition declaration.h:26
 
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition action.cpp:21
 
Definition bmv2/common/metermap.h:26