Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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  )  [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
 

The general constructor.

  • ep endpoint
  • w weight


Member Function Documentation

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

Endpoint accessor.

Returns:
reference to endpoint

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

Key builder for find operations.

  • ep endpoint.
Returns:
reference to modified _dummy_for_find.

bool olsr::gra::AdjNode::operator== const This rhs  )  const
 

Equality operator. Compares only endpoint addresses for the moment. Defined mainly for hash structures.

  • rhs right-hand-side operand
Returns:
true if equal, false if not

void olsr::gra::AdjNode::set_weight unsigned  w  )  [inline]
 

Weight modifier.

  • w new weight

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

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

Weight accessor.

Returns:
weight


Member Data Documentation

This olsr::gra::AdjNode::_dummy_for_find [static, private]
 

Static node for key generation.

const address_t olsr::gra::AdjNode::_endpoint [private]
 

Endpoint.

unsigned olsr::gra::AdjNode::_weight [private]
 

Weight.


The documentation for this class was generated from the following files:
Generated on Thu Jul 28 21:21:50 2005 for Qolyester daemon by  doxygen 1.4.1