#include <graph.hh>
Public Member Functions | |
AdjNode (const address_t &ep, unsigned w=1) | |
const address_t & | endpoint () const |
unsigned | weight () const |
void | set_weight (unsigned w) |
bool | operator== (const This &rhs) const |
std::string | to_string () const |
Static Public Member Functions | |
static const This & | make_key (const address_t &ep) |
Private Types | |
typedef AdjNode | This |
Private Member Functions | |
AdjNode () | |
Private Attributes | |
const address_t | _endpoint |
Endpoint. | |
unsigned | _weight |
Weight. | |
Static Private Attributes | |
static This | _dummy_for_find |
Static node for key generation. |
It is aimed to be augmented with information about nodes.
typedef AdjNode olsr::gra::AdjNode::This [private] |
olsr::gra::AdjNode::AdjNode | ( | ) | [inline, explicit, private] |
The private constructor.
It is defined solely for the initialization of _dummy_for_find.
olsr::gra::AdjNode::AdjNode | ( | const address_t & | ep, | |
unsigned | w = 1 | |||
) | [inline] |
The general constructor.
const address_t& olsr::gra::AdjNode::endpoint | ( | ) | const [inline] |
Endpoint accessor.
unsigned olsr::gra::AdjNode::weight | ( | ) | const [inline] |
Weight accessor.
void olsr::gra::AdjNode::set_weight | ( | unsigned | w | ) | [inline] |
Weight modifier.
bool olsr::gra::AdjNode::operator== | ( | const This & | rhs | ) | const [inline] |
Equality operator. Compares only endpoint addresses for the moment. Defined mainly for hash structures.
std::string olsr::gra::AdjNode::to_string | ( | ) | const [inline] |
const address_t olsr::gra::AdjNode::_endpoint [private] |
Endpoint.
unsigned olsr::gra::AdjNode::_weight [private] |
Weight.
This olsr::gra::AdjNode::_dummy_for_find [static, private] |
Static node for key generation.