olsr::net::LocalRoute Class Reference

Local route class. More...

#include <route.hh>

List of all members.

Public Member Functions

 LocalRoute (const address_t &d, unsigned p, const ifaceinfo_t &i)
 LocalRoute (const This &other)
const address_tdest_addr () const
unsigned prefix () const
const ifaceinfo_tinterface_info () const
bool operator== (const This &rhs) const

Static Public Member Functions

static const Thismake_key (const address_t &d, unsigned p)

Private Types

typedef LocalRoute This

Private Member Functions

 LocalRoute ()

Private Attributes

const address_t _d_addr
 Destination address.
const unsigned _prefix
 Prefix length.
const ifaceinfo_t _info
 Output interface information.

Static Private Attributes

static This _dummy_for_find
 Static instance for key building.


Detailed Description

Local route class.

A local route is simply a destination address, a prefix length and an output interface.


Member Typedef Documentation

typedef LocalRoute olsr::net::LocalRoute::This [private]


Constructor & Destructor Documentation

olsr::net::LocalRoute::LocalRoute (  )  [inline, explicit, private]

Private constructor

This is provided only for _dummy_for_find.

olsr::net::LocalRoute::LocalRoute ( const address_t d,
unsigned  p,
const ifaceinfo_t i 
) [inline]

Constructor

olsr::net::LocalRoute::LocalRoute ( const This other  )  [inline]


Member Function Documentation

const address_t& olsr::net::LocalRoute::dest_addr (  )  const [inline]

Destination address accessor

Returns:
Destination address

unsigned olsr::net::LocalRoute::prefix (  )  const [inline]

Prefix length accessor

Returns:
Prefix length

const ifaceinfo_t& olsr::net::LocalRoute::interface_info (  )  const [inline]

Interface accessor

Returns:
Output interface

bool olsr::net::LocalRoute::operator== ( const This rhs  )  const [inline]

Equality comparison operator

const LocalRoute & olsr::net::LocalRoute::make_key ( const address_t d,
unsigned  p 
) [inline, static]

Key builder


Member Data Documentation

const address_t olsr::net::LocalRoute::_d_addr [private]

Destination address.

const unsigned olsr::net::LocalRoute::_prefix [private]

Prefix length.

const ifaceinfo_t olsr::net::LocalRoute::_info [private]

Output interface information.

This olsr::net::LocalRoute::_dummy_for_find [static, private]

Static instance for key building.


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