OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FlowMgmtEntry Class Reference

#include <flow_mgmt_entry.h>

Inheritance diagram for FlowMgmtEntry:

Public Types

enum  State { INVALID, OPER_NOT_SEEN, OPER_ADD_SEEN, OPER_DEL_SEEN }
 
typedef
boost::intrusive::member_hook
< FlowMgmtKeyNode,
boost::intrusive::list_member_hook
<>,&FlowMgmtKeyNode::hook_
Node
 
typedef boost::intrusive::list
< FlowMgmtKeyNode, Node
FlowList
 

Public Member Functions

 FlowMgmtEntry ()
 
virtual ~FlowMgmtEntry ()
 
uint32_t Size () const
 
virtual bool Add (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool Delete (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool OperEntryAdd (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryChange (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool NonOperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool CanDelete () const
 
void set_oper_state (State state)
 
State oper_state () const
 
uint32_t gen_id () const
 
const FlowListflow_list () const
 

Static Public Attributes

static const int MaxResponses = 100
 

Protected Attributes

State oper_state_
 
uint32_t gen_id_
 
FlowList flow_list_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (FlowMgmtEntry)
 

Detailed Description

Definition at line 30 of file flow_mgmt_entry.h.

Member Typedef Documentation

typedef boost::intrusive::list<FlowMgmtKeyNode, Node> FlowMgmtEntry::FlowList

Definition at line 43 of file flow_mgmt_entry.h.

typedef boost::intrusive::member_hook<FlowMgmtKeyNode, boost::intrusive::list_member_hook<>, &FlowMgmtKeyNode::hook_> FlowMgmtEntry::Node

Definition at line 42 of file flow_mgmt_entry.h.

Member Enumeration Documentation

Enumerator
INVALID 
OPER_NOT_SEEN 
OPER_ADD_SEEN 
OPER_DEL_SEEN 

Definition at line 33 of file flow_mgmt_entry.h.

Constructor & Destructor Documentation

FlowMgmtEntry::FlowMgmtEntry ( )
inline

Definition at line 47 of file flow_mgmt_entry.h.

virtual FlowMgmtEntry::~FlowMgmtEntry ( )
inlinevirtual

Definition at line 49 of file flow_mgmt_entry.h.

Member Function Documentation

bool FlowMgmtEntry::Add ( FlowEntry flow,
FlowMgmtKeyNode node 
)
virtual

Reimplemented in InterfaceFlowMgmtEntry.

Definition at line 10 of file flow_mgmt_entry.cc.

bool FlowMgmtEntry::CanDelete ( ) const
virtual

Reimplemented in VrfFlowMgmtEntry.

Definition at line 26 of file flow_mgmt_entry.cc.

bool FlowMgmtEntry::Delete ( FlowEntry flow,
FlowMgmtKeyNode node 
)
virtual

Reimplemented in InterfaceFlowMgmtEntry.

Definition at line 18 of file flow_mgmt_entry.cc.

FlowMgmtEntry::DISALLOW_COPY_AND_ASSIGN ( FlowMgmtEntry  )
private
const FlowList& FlowMgmtEntry::flow_list ( ) const
inline

Definition at line 77 of file flow_mgmt_entry.h.

uint32_t FlowMgmtEntry::gen_id ( ) const
inline

Definition at line 76 of file flow_mgmt_entry.h.

virtual bool FlowMgmtEntry::NonOperEntryDelete ( FlowMgmtManager mgr,
const FlowMgmtRequest req,
FlowMgmtKey key 
)
inlinevirtual

Reimplemented in BgpAsAServiceFlowMgmtEntry.

Definition at line 68 of file flow_mgmt_entry.h.

State FlowMgmtEntry::oper_state ( ) const
inline

Definition at line 75 of file flow_mgmt_entry.h.

bool FlowMgmtEntry::OperEntryAdd ( FlowMgmtManager mgr,
const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Definition at line 35 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

bool FlowMgmtEntry::OperEntryChange ( FlowMgmtManager mgr,
const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Definition at line 52 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

bool FlowMgmtEntry::OperEntryDelete ( FlowMgmtManager mgr,
const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Definition at line 59 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

void FlowMgmtEntry::set_oper_state ( State  state)
inline

Definition at line 74 of file flow_mgmt_entry.h.

uint32_t FlowMgmtEntry::Size ( ) const
inline

Definition at line 53 of file flow_mgmt_entry.h.

Member Data Documentation

FlowList FlowMgmtEntry::flow_list_
protected

Definition at line 83 of file flow_mgmt_entry.h.

uint32_t FlowMgmtEntry::gen_id_
protected

Definition at line 82 of file flow_mgmt_entry.h.

const int FlowMgmtEntry::MaxResponses = 100
static

Definition at line 45 of file flow_mgmt_entry.h.

State FlowMgmtEntry::oper_state_
protected

Definition at line 81 of file flow_mgmt_entry.h.


The documentation for this class was generated from the following files: