|
xorp
|
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. | |
| Element * | single_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 |
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.
Implements SingleVarRW.
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.
| id | identifier of variable to be written to. |
| e | value of variable. |
Implements SingleVarRW.
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.
| id | identifier of variable to be written to. |
| e | value of variable. |
Implements SingleVarRW.
| 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.
| id | identifier of variable to be written to. |
| e | value of variable. |
Implements SingleVarRW.