#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.
|
|
|
The private constructor. It is defined solely for the initialization of _dummy_for_find. |
|
The general constructor.
|
|
Endpoint accessor.
|
|
Key builder for find operations.
|
|
Equality operator. Compares only endpoint addresses for the moment. Defined mainly for hash structures.
|
|
Weight modifier.
|
|
|
|
Weight accessor.
|
|
Static node for key generation.
|
|
Endpoint.
|
|
Weight.
|