Public Member Functions
Route Class Reference

Brief description of class still missing. More...

#include <Route.h>

List of all members.

Public Member Functions

const Addressdestination () const
const Addressgateway () const
 Route ()
 Route (const Address &destination)
 Route (const Address &destination, const Address &gateway)
 Route (const Route &o)
std::string toString () const

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Route::Route ( ) [inline]
{}
Route::Route ( const Address destination) [inline]
: _destination(destination) {}
Route::Route ( const Address destination,
const Address gateway 
) [inline]
      :  _destination(destination), _gateway(gateway) {}
Route::Route ( const Route o) [inline]
                        {
    _destination=o._destination;
    _gateway=o._gateway;
  }

Member Function Documentation

const Address& Route::destination ( ) const [inline]

Referenced by KernelRoute::destination().

{return _destination;}
const Address& Route::gateway ( ) const [inline]

Referenced by KernelRoute::destination().

{return _gateway;}
std::string Route::toString ( ) const

References GpCoreTools::Address::isValid(), str, and GpCoreTools::Address::toString().

{
  std::string str;
  if(_gateway.isValid() && _destination!=_gateway) {
    str+=_destination.toString();
    str+=" via ";
    str+=_gateway.toString();
  } else {
    str+=_destination.toString();
  }
  return str;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines