19#ifndef BF_P4C_PHV_V2_TX_SCORE_H_
20#define BF_P4C_PHV_V2_TX_SCORE_H_
22#include "bf-p4c/phv/utils/utils.h"
30 virtual bool better_than(
const TxScore *other)
const = 0;
31 virtual std::string str()
const = 0;
44 bool better_than(
const TxScore *)
const override {
return false; }
45 std::string str()
const override {
return "nil"; };
59 bool use_mocha_or_dark =
false;
61 : n_packed(n_packed), use_mocha_or_dark(use_mocha_or_dark) {}
62 bool better_than(
const TxScore *other)
const override;
63 std::string str()
const override;
Definition phv/utils/utils.h:561
MinPackTxScore prefers minimal packing.
Definition tx_score.h:55
factory class for MinPackTxScore.
Definition tx_score.h:67
NilTxScoreMaker is a factory class to make nil score.
Definition tx_score.h:49
TxScore is the interface of an allocation score.
Definition tx_score.h:28
TxScoreMaker is the interface of the factory class of TxScore.
Definition tx_score.h:35
The namespace encapsulating PHV-related stuff.
Definition gateway.h:32