xorp

OlsrVarRW Class Reference

Inheritance diagram for OlsrVarRW:
SingleVarRW NONCOPYABLE VarRW

List of all members.

Public Types

enum  {
  VAR_NETWORK = VAR_PROTOCOL, VAR_NEXTHOP, VAR_METRIC, VAR_VTYPE,
  VAR_ORIGINATOR, VAR_MAINADDR, VAR_OLSRMAX
}

Public Member Functions

 OlsrVarRW (IPv4Net &network, IPv4 &nexthop, uint32_t &metric, IPv4 &originator, IPv4 &main_addr, uint32_t vtype, PolicyTags &policytags)
void start_read ()
 If any reads are performed, this is a marker which informs the derived class that reads will now start.
Elementsingle_read (const Id &id)
 Read of a variable.
void single_write (const Id &id, const Element &e)
 Write of a variable.

Private Attributes

IPv4Net_network
IPv4_nexthop
uint32_t & _metric
IPv4_originator
IPv4_main_addr
uint32_t & _vtype
PolicyTags_policytags
ElementFactory _ef

Member Function Documentation

Element * OlsrVarRW::single_read ( const Id &  id) [virtual]

Read of a variable.

The VarRW needs to read a particular element. This may return NULL indicating ElemNull---i.e. variable not present in THIS route.

Returns:
variable requested.
Parameters:
idthe id of the variable.

Implements SingleVarRW.

void OlsrVarRW::single_write ( const Id &  id,
const Element e 
) [virtual]

Write of a variable.

The write MUST be performed now, as the element pointer may become invalid after this call. Also, a single write will be called for each modified element.

Parameters:
ididentifier of variable to be written to.
evalue of variable.

Implements SingleVarRW.


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