xorp

ElemNet< A > Class Template Reference

Inheritance diagram for ElemNet< A >:
Element

List of all members.

Public Types

enum  Mod {
  MOD_NONE, MOD_EXACT, MOD_SHORTER, MOD_ORSHORTER,
  MOD_LONGER, MOD_ORLONGER, MOD_NOT
}

Public Member Functions

 ElemNet (const char *)
 ElemNet (const A &)
 ElemNet (const ElemNet< A > &)
string str () const
 Every element must be representable by a string.
const char * type () const
const A & val () const
BinOperop () const
bool operator< (const ElemNet< A > &rhs) const
bool operator== (const ElemNet< A > &rhs) const

Static Public Member Functions

static Mod str_to_mod (const char *p)
static string mod_to_str (Mod mod)

Static Public Attributes

static const char * id = "ipv4net"
static Hash _hash = HASH_ELEM_IPV4NET

Private Member Functions

ElemNetoperator= (const ElemNet< A > &)

Private Attributes

const A * _net
Mod _mod
BinOper_op

template<class A>
class ElemNet< A >


Member Function Documentation

template<class A >
string ElemNet< 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 * ElemNet< 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