OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)
 
FlowMgmtEntryAllocate (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)
 
FlowMgmtEntryLocate (FlowMgmtKey *key)
 
FlowMgmtEntryFind (FlowMgmtKey *key)
 
FlowMgmtKeyLowerBound (FlowMgmtKey *key)
 
Treetree ()
 
FlowMgmtManagermgr () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (InterfaceFlowMgmtTree)
 

Private Attributes

tbb::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_
 
FlowMgmtManagermgr_
 

Detailed Description

Definition at line 115 of file flow_mgmt_tree.h.

Constructor & Destructor Documentation

InterfaceFlowMgmtTree::InterfaceFlowMgmtTree ( FlowMgmtManager mgr)
inline

Definition at line 117 of file flow_mgmt_tree.h.

virtual InterfaceFlowMgmtTree::~InterfaceFlowMgmtTree ( )
inlinevirtual

Definition at line 118 of file flow_mgmt_tree.h.

Member Function Documentation

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

Implements FlowMgmtTree.

Definition at line 370 of file flow_mgmt_tree.cc.

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

Implements FlowMgmtTree.

Definition at line 361 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

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

Reimplemented from FlowMgmtTree.

Definition at line 336 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

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

Definition at line 346 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

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

Reimplemented from FlowMgmtTree.

Definition at line 341 of file flow_mgmt_tree.cc.

Here is the call graph for this function:

Member Data Documentation

tbb::mutex InterfaceFlowMgmtTree::mutex_
private

Definition at line 130 of file flow_mgmt_tree.h.


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