xorp

IfTreeItem Class Reference

Base class for FEA configurable items where the modifications need to be held over and propagated later, ie changes happen during a transaction but are propagated during the commit. More...

#include <iftree.hh>

Inheritance diagram for IfTreeItem:
NONCOPYABLE IfTree IfTreeAddr4 IfTreeAddr6 IfTreeInterface IfTreeVif

List of all members.

Public Types

enum  State { NO_CHANGE = 0x00, CREATED = 0x01, DELETED = 0x02, CHANGED = 0x04 }

Public Member Functions

int set_state (State st)
State state () const
virtual int mark (State st)
bool is_marked (State st) const
void set_soft (bool en)
bool is_soft () const
virtual void finalize_state ()=0
 Virtual method to be implemented to flush out state associated objects, ie if an object is marked CREATED or CHANGED it should be marked NO_CHANGE, if an object is marked DELETED, it should be removed from the relevant container and destructed.
string str () const

Static Protected Member Functions

static uint32_t bits (State st)

Protected Attributes

State _st
bool _soft

Detailed Description

Base class for FEA configurable items where the modifications need to be held over and propagated later, ie changes happen during a transaction but are propagated during the commit.


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