xorp

OspfVarRW< A > Class Template Reference

Inheritance diagram for OspfVarRW< A >:
SingleVarRW NONCOPYABLE VarRW

List of all members.

Public Types

enum  { VAR_NETWORK = VAR_PROTOCOL, VAR_NEXTHOP, VAR_METRIC, VAR_EBIT }

Public Member Functions

 OspfVarRW (IPNet< A > &network, A &nexthop, uint32_t &metric, bool &e_bit, uint32_t &tag, bool &tag_set, 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.
template<>
void start_read ()
 If any reads are performed, this is a marker which informs the derived class that reads will now start.
template<>
void start_read ()
 If any reads are performed, this is a marker which informs the derived class that reads will now start.
template<>
void single_write (const Id &id, const Element &e)
 Write of a variable.
template<>
void single_write (const Id &id, const Element &e)
 Write of a variable.

Private Member Functions

void start_read_common ()
void single_write_common (const Id &id, const Element &e)

Private Attributes

IPNet< A > & _network
A & _nexthop
uint32_t & _metric
bool & _e_bit
uint32_t & _tag
bool & _tag_set
PolicyTags_policytags
ElementFactory _ef

template<typename A>
class OspfVarRW< A >


Member Function Documentation

template<typename A >
Element * OspfVarRW< A >::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.

template<>
void OspfVarRW< IPv4 >::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.

template<>
void OspfVarRW< IPv6 >::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.

template<typename A >
void OspfVarRW< A >::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