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

#include <flow_mgmt_tree.h>

Inheritance diagram for FlowMgmtTree:
Collaboration diagram for FlowMgmtTree:

Public Types

typedef std::map< FlowMgmtKey
*, FlowMgmtEntry
*, FlowMgmtKeyCmp
Tree
 

Public Member Functions

 FlowMgmtTree (FlowMgmtManager *mgr)
 
virtual ~FlowMgmtTree ()
 
virtual bool Add (FlowMgmtKey *key, FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool Delete (FlowMgmtKey *key, FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual void InsertEntry (FlowMgmtKey *key, FlowMgmtEntry *entry)
 
virtual void RemoveEntry (Tree::iterator it)
 
virtual bool OperEntryAdd (const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryChange (const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryDelete (const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool RetryDelete (FlowMgmtKey *key)
 
virtual void ExtractKeys (FlowEntry *flow, FlowMgmtKeyTree *tree)=0
 
virtual FlowMgmtEntryAllocate (const FlowMgmtKey *key)=0
 
virtual void FreeNotify (FlowMgmtKey *key, uint32_t gen_id)
 
FlowMgmtEntryLocate (FlowMgmtKey *key)
 
FlowMgmtEntryFind (FlowMgmtKey *key)
 
FlowMgmtKeyLowerBound (FlowMgmtKey *key)
 
Treetree ()
 
FlowMgmtManagermgr () const
 

Static Public Member Functions

static bool AddFlowMgmtKey (FlowMgmtKeyTree *tree, FlowMgmtKey *key)
 

Protected Member Functions

bool TryDelete (FlowMgmtKey *key, FlowMgmtEntry *entry)
 

Protected Attributes

Tree tree_
 
FlowMgmtManagermgr_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (FlowMgmtTree)
 

Detailed Description

Definition at line 19 of file flow_mgmt_tree.h.

Member Typedef Documentation

Definition at line 21 of file flow_mgmt_tree.h.

Constructor & Destructor Documentation

FlowMgmtTree::FlowMgmtTree ( FlowMgmtManager mgr)
inline

Definition at line 22 of file flow_mgmt_tree.h.

virtual FlowMgmtTree::~FlowMgmtTree ( )
inlinevirtual

Definition at line 23 of file flow_mgmt_tree.h.

Member Function Documentation

bool FlowMgmtTree::Add ( FlowMgmtKey key,
FlowEntry flow,
FlowMgmtKeyNode node 
)
virtual

Definition at line 80 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

bool FlowMgmtTree::AddFlowMgmtKey ( FlowMgmtKeyTree tree,
FlowMgmtKey key 
)
static

Definition at line 67 of file flow_mgmt_tree.cc.

bool FlowMgmtTree::Delete ( FlowMgmtKey key,
FlowEntry flow,
FlowMgmtKeyNode node 
)
virtual

Reimplemented in RouteFlowMgmtTree, and AclFlowMgmtTree.

Definition at line 90 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

FlowMgmtTree::DISALLOW_COPY_AND_ASSIGN ( FlowMgmtTree  )
private
virtual void FlowMgmtTree::ExtractKeys ( FlowEntry flow,
FlowMgmtKeyTree tree 
)
pure virtual
FlowMgmtEntry * FlowMgmtTree::Find ( FlowMgmtKey key)

Definition at line 11 of file flow_mgmt_tree.cc.

void FlowMgmtTree::FreeNotify ( FlowMgmtKey key,
uint32_t  gen_id 
)
virtual

Reimplemented in BgpAsAServiceFlowMgmtTree, and VrfFlowMgmtTree.

Definition at line 109 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

void FlowMgmtTree::InsertEntry ( FlowMgmtKey key,
FlowMgmtEntry entry 
)
virtual

Reimplemented in InterfaceFlowMgmtTree, and VnFlowMgmtTree.

Definition at line 29 of file flow_mgmt_tree.cc.

FlowMgmtEntry * FlowMgmtTree::Locate ( FlowMgmtKey key)

Definition at line 19 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

FlowMgmtKey * FlowMgmtTree::LowerBound ( FlowMgmtKey key)

Definition at line 33 of file flow_mgmt_tree.cc.

FlowMgmtManager* FlowMgmtTree::mgr ( ) const
inline

Definition at line 61 of file flow_mgmt_tree.h.

bool FlowMgmtTree::OperEntryAdd ( const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Reimplemented in VrfFlowMgmtTree, InetRouteFlowMgmtTree, and RouteFlowMgmtTree.

Definition at line 118 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

bool FlowMgmtTree::OperEntryChange ( const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Definition at line 124 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

bool FlowMgmtTree::OperEntryDelete ( const FlowMgmtRequest req,
FlowMgmtKey key 
)
virtual

Reimplemented in VrfFlowMgmtTree, InetRouteFlowMgmtTree, and RouteFlowMgmtTree.

Definition at line 134 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

void FlowMgmtTree::RemoveEntry ( Tree::iterator  it)
virtual

Reimplemented in InterfaceFlowMgmtTree, and VnFlowMgmtTree.

Definition at line 60 of file flow_mgmt_tree.cc.

bool FlowMgmtTree::RetryDelete ( FlowMgmtKey key)
virtual

Definition at line 146 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

Tree& FlowMgmtTree::tree ( )
inline

Definition at line 60 of file flow_mgmt_tree.h.

bool FlowMgmtTree::TryDelete ( FlowMgmtKey key,
FlowMgmtEntry entry 
)
protected

Definition at line 41 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

Member Data Documentation

FlowMgmtManager* FlowMgmtTree::mgr_
protected

Definition at line 67 of file flow_mgmt_tree.h.

Tree FlowMgmtTree::tree_
protected

Definition at line 66 of file flow_mgmt_tree.h.


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