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

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

Constructor

  • d Destination address
  • p Prefix length
  • i Output interface

olsr::net::LocalRoute::LocalRoute const This other  ) 
 


Member Function Documentation

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

Destination address accessor

Returns:
Destination address

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

Interface accessor

Returns:
Output interface

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

Key builder

  • d Destionation address
  • p Prefix length
    Returns:
    Modified instance of _dummy_for_find

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

Equality comparison operator

  • rhs RHS operand
    Returns:
    true if routes are equal

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

Prefix length accessor

Returns:
Prefix length


Member Data Documentation

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

Destination address.

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

Static instance for key building.

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

Output interface information.

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

Prefix length.


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