#include <FwdStrategy.h>
Public Member Functions | |
virtual | ~FwdStrategyComp () |
Destructor. | |
virtual bool | operator() (const Bundle *a, const Bundle *b) const |
Comparator function for FIFO ordering in a heap. | |
FwdStrategy::fwd_strategy_t | fwd_strategy () const |
Accessors. | |
const char * | fwd_strategy_str () const |
Accessors. | |
Protected Member Functions | |
FwdStrategyComp (FwdStrategy::fwd_strategy_t fs=FwdStrategy::INVALID_FS) | |
Constructor is protected to force use of factory method. | |
Protected Attributes | |
FwdStrategy::fwd_strategy_t | strategy_ |
which strategy is in use | |
Friends | |
class | FwdStrategy |
for factory method |
FwdStrategyComp and its derivatives fill the comparator function for sort order. FwdStrategyComp defaults to FIFO ordering.
Definition at line 82 of file FwdStrategy.h.
virtual prophet::FwdStrategyComp::~FwdStrategyComp | ( | ) | [inline, virtual] |
prophet::FwdStrategyComp::FwdStrategyComp | ( | FwdStrategy::fwd_strategy_t | fs = FwdStrategy::INVALID_FS |
) | [inline, protected] |
Constructor is protected to force use of factory method.
Definition at line 116 of file FwdStrategy.h.
FwdStrategy::fwd_strategy_t prophet::FwdStrategyComp::fwd_strategy | ( | ) | const [inline] |
const char* prophet::FwdStrategyComp::fwd_strategy_str | ( | ) | const [inline] |
Accessors.
Definition at line 104 of file FwdStrategy.h.
References prophet::FwdStrategy::fs_to_str(), and strategy_.
virtual bool prophet::FwdStrategyComp::operator() | ( | const Bundle * | a, | |
const Bundle * | b | |||
) | const [inline, virtual] |
Comparator function for FIFO ordering in a heap.
Reimplemented in prophet::FwdStrategyCompGRTRSORT, and prophet::FwdStrategyCompGRTRMAX.
Definition at line 94 of file FwdStrategy.h.
friend class FwdStrategy [friend] |
for factory method
Reimplemented in prophet::FwdStrategyCompGRTRSORT, and prophet::FwdStrategyCompGRTRMAX.
Definition at line 111 of file FwdStrategy.h.
which strategy is in use
Definition at line 119 of file FwdStrategy.h.
Referenced by fwd_strategy(), and fwd_strategy_str().