xorp

LinkCode Class Reference

Helper class which represents the link code used in a link tuple. More...

#include <message.hh>

List of all members.

Public Member Functions

 LinkCode (OlsrTypes::NeighborType ntype, OlsrTypes::LinkType ltype) throw (BadLinkCode)
 LinkCode (uint8_t code) throw (BadLinkCode)
 LinkCode (const LinkCode &rhs)
LinkCodeoperator= (const uint8_t &rhs) throw (BadLinkCode)
 operator uint8_t () const
OlsrTypes::NeighborType neighbortype () const
OlsrTypes::LinkType linktype () const
bool is_unspec_link () const
bool is_asym_link () const
bool is_sym_link () const
bool is_lost_link () const
bool is_mpr_neighbor () const
bool is_sym_neighbor () const
bool is_not_neighbor () const
string str () const

Private Member Functions

void throw_if_not_valid ()
bool is_valid ()

Static Private Member Functions

static const char * linktype_to_str (OlsrTypes::LinkType t)
static const char * neighbortype_to_str (OlsrTypes::NeighborType t)

Private Attributes

uint8_t _linkcode

Detailed Description

Helper class which represents the link code used in a link tuple.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations