#include <graph.hh>
Public Member Functions | |
AdjInfo (const address_t &ep1, const address_t &ep2, AdjTag tag=topo) | |
const address_t & | endpoint1 () const |
const address_t & | endpoint2 () const |
AdjTag | tag () const |
bool | operator== (const This &rhs) const |
std::string | to_string () const |
Static Public Member Functions | |
static const This & | make_key (const address_t &ep1, const address_t &ep2, AdjTag tag=topo) |
static This | invert (const This &x) |
Private Types | |
typedef AdjInfo | This |
Private Member Functions | |
AdjInfo () | |
Private Attributes | |
const address_t | _ep1 |
First endpoint. | |
const address_t | _ep2 |
Second endpoint. | |
const AdjTag | _tag |
Static Private Attributes | |
static This | _dummy_for_find |
Static arc for key generation. |
It is aimed to be augmented with additional attributes, to reflect link state.
typedef AdjInfo olsr::gra::AdjInfo::This [private] |
olsr::gra::AdjInfo::AdjInfo | ( | ) | [explicit, private] |
The private constructor.
It is defined solely for the initialization of _dummy_for_find.
olsr::gra::AdjInfo::AdjInfo | ( | const address_t & | ep1, | |
const address_t & | ep2, | |||
AdjTag | tag = topo | |||
) | [inline] |
The general constructor.
const address_t& olsr::gra::AdjInfo::endpoint1 | ( | ) | const [inline] |
First endpoint accessor.
References _ep1.
Referenced by olsr::gra::AdjGraph::insert_arc(), and olsr::gra::hash_AdjInfo::operator()().
const address_t& olsr::gra::AdjInfo::endpoint2 | ( | ) | const [inline] |
Second endpoint accessor.
References _ep2.
Referenced by olsr::gra::AdjGraph::insert_arc(), and olsr::gra::hash_AdjInfo::operator()().
bool olsr::gra::AdjInfo::operator== | ( | const This & | rhs | ) | const [inline] |
const AdjInfo & olsr::gra::AdjInfo::make_key | ( | const address_t & | ep1, | |
const address_t & | ep2, | |||
AdjTag | tag = topo | |||
) | [inline, static] |
Key builder for find operations.
References _dummy_for_find, _ep1, _ep2, and _tag.
Referenced by olsr::alg::dijkstra(), olsr::set::TopologySet::erase(), and olsr::set::TwoHopNeighborSet::erase().
Arc inverter.
References _ep1, _ep2, and _tag.
Referenced by olsr::gra::AdjGraph::insert_edge(), olsr::gra::AdjGraph::remove_edge(), and olsr::gra::AdjGraph::remove_edge_then_node().
const address_t olsr::gra::AdjInfo::_ep1 [private] |
const address_t olsr::gra::AdjInfo::_ep2 [private] |
const AdjTag olsr::gra::AdjInfo::_tag [private] |
Referenced by invert(), make_key(), operator==(), tag(), and to_string().
This olsr::gra::AdjInfo::_dummy_for_find [static, private] |