xorp

ElemNextHop< A > Class Template Reference

Inheritance diagram for ElemNextHop< A >:
Element

List of all members.

Public Types

enum  Var {
  VAR_NONE, VAR_DISCARD, VAR_NEXT_TABLE, VAR_PEER_ADDRESS,
  VAR_REJECT, VAR_SELF
}

Public Member Functions

 ElemNextHop (const char *)
 ElemNextHop (const A &nh)
string str () const
 Every element must be representable by a string.
const char * type () const
Var var () const
const A & addr () const
const A & val () const

Static Public Attributes

static const char * id = "ipv4nexthop"
static Hash _hash = HASH_ELEM_IPV4NEXTHOP

Private Attributes

Var _var
_addr

template<class A>
class ElemNextHop< A >


Member Function Documentation

template<class A >
string ElemNextHop< A >::str ( ) const [virtual]

Every element must be representable by a string.

This is a requirement to enable the policy manager to send elements to the backend filters via XRL calls for example.

Returns:
string representation of the element.

Implements Element.

template<class A >
const char * ElemNextHop< A >::type ( ) const [virtual]
Returns:
string representation of element type.

Implements Element.


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