#include <QueuePolicy.h>
Definition at line 104 of file QueuePolicy.h.
Public Member Functions | |
virtual | ~QueueComp () |
Destructor. | |
virtual bool | operator() (const Bundle *a, const Bundle *b) const |
Comparator operator. | |
QueuePolicy::q_policy_t | qp () const |
Accessors. | |
const Stats * | stats () const |
Accessors. | |
const Table * | nodes () const |
Accessors. | |
Public Attributes | |
u_int | min_fwd_ |
Only evict bundles whose NF > min_fwd_. | |
bool | verbose_ |
debug setting | |
Protected Member Functions | |
QueueComp (QueuePolicy::q_policy_t qp=QueuePolicy::INVALID_QP, const Stats *stats=NULL, const Table *nodes=NULL, u_int minfwd=0) | |
Constructor, protected to enforce factory method. | |
Protected Attributes | |
QueuePolicy::q_policy_t | qp_ |
type code for this comparator's policy | |
const Stats * | stats_ |
For stats lookup per Bundle. | |
const Table * | nodes_ |
For p_value lookup per Bundle. | |
Friends | |
class | QueuePolicy |
virtual prophet::QueueComp::~QueueComp | ( | ) | [inline, virtual] |
prophet::QueueComp::QueueComp | ( | QueuePolicy::q_policy_t | qp = QueuePolicy::INVALID_QP , |
|
const Stats * | stats = NULL , |
|||
const Table * | nodes = NULL , |
|||
u_int | minfwd = 0 | |||
) | [inline, protected] |
virtual bool prophet::QueueComp::operator() | ( | const Bundle * | a, | |
const Bundle * | b | |||
) | const [inline, virtual] |
Comparator operator.
Reimplemented in prophet::QueueCompMOFO, prophet::QueueCompMOPR, prophet::QueueCompLMOPR, prophet::QueueCompSHLI, and prophet::QueueCompLEPR.
Definition at line 115 of file QueuePolicy.h.
References prophet::Bundle::creation_ts(), prophet::Bundle::sequence_num(), and verbose_.
QueuePolicy::q_policy_t prophet::QueueComp::qp | ( | ) | const [inline] |
Accessors.
Definition at line 128 of file QueuePolicy.h.
References qp_.
Referenced by prophet::Repository::evict(), and prophet::Repository::set_comparator().
const Stats* prophet::QueueComp::stats | ( | ) | const [inline] |
const Table* prophet::QueueComp::nodes | ( | ) | const [inline] |
friend class QueuePolicy [friend] |
Reimplemented in prophet::QueueCompMOFO, prophet::QueueCompMOPR, prophet::QueueCompLMOPR, prophet::QueueCompSHLI, and prophet::QueueCompLEPR.
Definition at line 134 of file QueuePolicy.h.
QueuePolicy::q_policy_t prophet::QueueComp::qp_ [protected] |
type code for this comparator's policy
Definition at line 148 of file QueuePolicy.h.
Referenced by qp().
const Stats* prophet::QueueComp::stats_ [protected] |
For stats lookup per Bundle.
Definition at line 149 of file QueuePolicy.h.
Referenced by prophet::QueueCompLMOPR::operator()(), prophet::QueueCompMOPR::operator()(), and stats().
const Table* prophet::QueueComp::nodes_ [protected] |
For p_value lookup per Bundle.
Definition at line 150 of file QueuePolicy.h.
Referenced by nodes(), and prophet::QueueCompLEPR::operator()().
Only evict bundles whose NF > min_fwd_.
Definition at line 153 of file QueuePolicy.h.
Referenced by prophet::Repository::evict().
debug setting
Definition at line 155 of file QueuePolicy.h.
Referenced by prophet::QueueCompLEPR::operator()(), prophet::QueueCompSHLI::operator()(), prophet::QueueCompLMOPR::operator()(), prophet::QueueCompMOPR::operator()(), prophet::QueueCompMOFO::operator()(), and operator()().