#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.
const address_t& olsr::gra::AdjInfo::endpoint2 | ( | ) | const [inline] |
Second endpoint accessor.
AdjTag olsr::gra::AdjInfo::tag | ( | ) | const [inline] |
bool olsr::gra::AdjInfo::operator== | ( | const This & | rhs | ) | const [inline] |
Equality operator. Compares only endpoint addresses for the moment. Defined maily for hashing structures.
std::string olsr::gra::AdjInfo::to_string | ( | ) | 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.
Arc inverter.
const address_t olsr::gra::AdjInfo::_ep1 [private] |
First endpoint.
const address_t olsr::gra::AdjInfo::_ep2 [private] |
Second endpoint.
const AdjTag olsr::gra::AdjInfo::_tag [private] |
This olsr::gra::AdjInfo::_dummy_for_find [static, private] |
Static arc for key generation.