OpenSDN source code
InterfaceFlowMgmtTree Class Reference

#include <flow_mgmt_tree.h>

Inheritance diagram for InterfaceFlowMgmtTree:
Collaboration diagram for InterfaceFlowMgmtTree:

Public Member Functions

 InterfaceFlowMgmtTree (FlowMgmtManager *mgr)
 
virtual ~InterfaceFlowMgmtTree ()
 
void ExtractKeys (FlowEntry *flow, FlowMgmtKeyTree *tree)
 
FlowMgmtEntry * Allocate (const FlowMgmtKey *key)
 
void InterfaceFlowCount (const Interface *itf, uint64_t *created, uint64_t *aged, uint32_t *active_flows)
 
void InsertEntry (FlowMgmtKey *key, FlowMgmtEntry *entry)
 
void RemoveEntry (Tree::iterator it)
 
- Public Member Functions inherited from FlowMgmtTree
 FlowMgmtTree (FlowMgmtManager *mgr)
 
virtual ~FlowMgmtTree ()
 
virtual bool Add (FlowMgmtKey *key, FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool Delete (FlowMgmtKey *key, FlowEntry *flow, FlowMgmtKeyNode *node)
 
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 FreeNotify (FlowMgmtKey *key, uint32_t gen_id)
 
FlowMgmtEntry * Locate (FlowMgmtKey *key)
 
FlowMgmtEntry * Find (FlowMgmtKey *key)
 
FlowMgmtKey * LowerBound (FlowMgmtKey *key)
 
Tree & tree ()
 
FlowMgmtManager * mgr () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (InterfaceFlowMgmtTree)
 

Private Attributes

std::mutex mutex_
 

Additional Inherited Members

- Public Types inherited from FlowMgmtTree
typedef std::map< FlowMgmtKey *, FlowMgmtEntry *, FlowMgmtKeyCmp > Tree
 
- Static Public Member Functions inherited from FlowMgmtTree
static bool AddFlowMgmtKey (FlowMgmtKeyTree *tree, FlowMgmtKey *key)
 
- Protected Member Functions inherited from FlowMgmtTree
bool TryDelete (FlowMgmtKey *key, FlowMgmtEntry *entry)
 
- Protected Attributes inherited from FlowMgmtTree
Tree tree_
 
FlowMgmtManager * mgr_
 

Detailed Description

Definition at line 117 of file flow_mgmt_tree.h.

Constructor & Destructor Documentation

◆ InterfaceFlowMgmtTree()

InterfaceFlowMgmtTree::InterfaceFlowMgmtTree ( FlowMgmtManager *  mgr)
inline

Definition at line 119 of file flow_mgmt_tree.h.

◆ ~InterfaceFlowMgmtTree()

virtual InterfaceFlowMgmtTree::~InterfaceFlowMgmtTree ( )
inlinevirtual

Definition at line 120 of file flow_mgmt_tree.h.

Member Function Documentation

◆ Allocate()

FlowMgmtEntry * InterfaceFlowMgmtTree::Allocate ( const FlowMgmtKey *  key)
virtual

Implements FlowMgmtTree.

Definition at line 371 of file flow_mgmt_tree.cc.

◆ DISALLOW_COPY_AND_ASSIGN()

InterfaceFlowMgmtTree::DISALLOW_COPY_AND_ASSIGN ( InterfaceFlowMgmtTree  )
private

◆ ExtractKeys()

void InterfaceFlowMgmtTree::ExtractKeys ( FlowEntry *  flow,
FlowMgmtKeyTree *  tree 
)
virtual

Implements FlowMgmtTree.

Definition at line 362 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

◆ InsertEntry()

void InterfaceFlowMgmtTree::InsertEntry ( FlowMgmtKey *  key,
FlowMgmtEntry *  entry 
)
virtual

Reimplemented from FlowMgmtTree.

Definition at line 337 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

◆ InterfaceFlowCount()

void InterfaceFlowMgmtTree::InterfaceFlowCount ( const Interface *  itf,
uint64_t *  created,
uint64_t *  aged,
uint32_t *  active_flows 
)

Definition at line 347 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

◆ RemoveEntry()

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

Reimplemented from FlowMgmtTree.

Definition at line 342 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

Member Data Documentation

◆ mutex_

std::mutex InterfaceFlowMgmtTree::mutex_
private

Definition at line 132 of file flow_mgmt_tree.h.


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