#include <FwdStrategy.h>
Public Member Functions | |
virtual | ~FwdStrategyCompGRTRSORT () |
Destructor. | |
virtual bool | operator() (const Bundle *a, const Bundle *b) const |
Comparator function for FIFO ordering in a heap. | |
const Table * | local_nodes () const |
Accessors. | |
const Table * | remote_nodes () const |
Accessors. | |
Protected Member Functions | |
FwdStrategyCompGRTRSORT (FwdStrategy::fwd_strategy_t fs, const Table *local, const Table *remote) | |
Constructor is protected to restrict access to factory method. | |
Protected Attributes | |
const Table * | local_ |
list of routes as known by local node | |
const Table * | remote_ |
list of routes known by peer node | |
Friends | |
class | FwdStrategy |
for factory method |
Sorted according to metric P_(B,D) - P_(A,D), where A is local node, B is peering Prophet node, and D represents the route to the Bundle's destination.
Definition at line 129 of file FwdStrategy.h.
virtual prophet::FwdStrategyCompGRTRSORT::~FwdStrategyCompGRTRSORT | ( | ) | [inline, virtual] |
prophet::FwdStrategyCompGRTRSORT::FwdStrategyCompGRTRSORT | ( | FwdStrategy::fwd_strategy_t | fs, | |
const Table * | local, | |||
const Table * | remote | |||
) | [inline, protected] |
Constructor is protected to restrict access to factory method.
Definition at line 156 of file FwdStrategy.h.
const Table* prophet::FwdStrategyCompGRTRSORT::local_nodes | ( | ) | const [inline] |
virtual bool prophet::FwdStrategyCompGRTRSORT::operator() | ( | const Bundle * | a, | |
const Bundle * | b | |||
) | const [inline, virtual] |
Comparator function for FIFO ordering in a heap.
Reimplemented from prophet::FwdStrategyComp.
Definition at line 137 of file FwdStrategy.h.
References local_, prophet::Table::p_value(), and remote_.
const Table* prophet::FwdStrategyCompGRTRSORT::remote_nodes | ( | ) | const [inline] |
friend class FwdStrategy [friend] |
for factory method
Reimplemented from prophet::FwdStrategyComp.
Definition at line 151 of file FwdStrategy.h.
const Table* prophet::FwdStrategyCompGRTRSORT::local_ [protected] |
list of routes as known by local node
Definition at line 160 of file FwdStrategy.h.
Referenced by local_nodes(), and operator()().
const Table* prophet::FwdStrategyCompGRTRSORT::remote_ [protected] |
list of routes known by peer node
Definition at line 161 of file FwdStrategy.h.
Referenced by operator()(), and remote_nodes().