olsr::gra::AdjNode Class Reference

A Node of the graph. More...

#include <graph.hh>

List of all members.

Public Member Functions

 AdjNode (const address_t &ep, unsigned w=1)
const address_tendpoint () 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 Thismake_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.


Detailed Description

A Node of the graph.

It is aimed to be augmented with information about nodes.


Member Typedef Documentation

typedef AdjNode olsr::gra::AdjNode::This [private]


Constructor & Destructor Documentation

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.


Member Function Documentation

const address_t& olsr::gra::AdjNode::endpoint (  )  const [inline]

Endpoint accessor.

Returns:
reference to endpoint

unsigned olsr::gra::AdjNode::weight (  )  const [inline]

Weight accessor.

Returns:
weight

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.

Returns:
true if equal, false if not

std::string olsr::gra::AdjNode::to_string (  )  const [inline]

const AdjNode & olsr::gra::AdjNode::make_key ( const address_t ep  )  [inline, static]

Key builder for find operations.

Returns:
reference to modified _dummy_for_find.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Mon Sep 10 17:02:13 2007 for Qolyester daemon by  doxygen 1.5.1