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

#include <bgp_condition_listener.h>

Inheritance diagram for ConditionMatch:
Collaboration diagram for ConditionMatch:

Public Member Functions

 ConditionMatch ()
 
virtual ~ConditionMatch ()
 
virtual bool Match (BgpServer *server, BgpTable *table, BgpRoute *route, bool deleted)=0
 
virtual std::string ToString () const =0
 
bool deleted () const
 
void IncrementNumMatchstate ()
 
void DecrementNumMatchstate ()
 
uint32_t num_matchstate () const
 

Private Member Functions

void SetDeleted ()
 
bool walk_done () const
 
void set_walk_done ()
 
void reset_walk_done ()
 

Private Attributes

bool deleted_
 
bool walk_done_
 
tbb::mutex mutex_
 
uint32_t num_matchstate_
 
tbb::atomic< int > refcount_
 

Friends

class BgpConditionListener
 
void intrusive_ptr_add_ref (ConditionMatch *match)
 
void intrusive_ptr_release (ConditionMatch *match)
 

Detailed Description

Definition at line 32 of file bgp_condition_listener.h.

Constructor & Destructor Documentation

ConditionMatch::ConditionMatch ( )
inline

Definition at line 34 of file bgp_condition_listener.h.

virtual ConditionMatch::~ConditionMatch ( )
inlinevirtual

Definition at line 38 of file bgp_condition_listener.h.

Member Function Documentation

void ConditionMatch::DecrementNumMatchstate ( )
inline

Definition at line 57 of file bgp_condition_listener.h.

bool ConditionMatch::deleted ( ) const
inline

Definition at line 50 of file bgp_condition_listener.h.

void ConditionMatch::IncrementNumMatchstate ( )
inline

Definition at line 52 of file bgp_condition_listener.h.

virtual bool ConditionMatch::Match ( BgpServer server,
BgpTable table,
BgpRoute route,
bool  deleted 
)
pure virtual
uint32_t ConditionMatch::num_matchstate ( ) const
inline

Definition at line 62 of file bgp_condition_listener.h.

void ConditionMatch::reset_walk_done ( )
inlineprivate

Definition at line 75 of file bgp_condition_listener.h.

void ConditionMatch::set_walk_done ( )
inlineprivate

Definition at line 74 of file bgp_condition_listener.h.

void ConditionMatch::SetDeleted ( )
inlineprivate

Definition at line 70 of file bgp_condition_listener.h.

virtual std::string ConditionMatch::ToString ( ) const
pure virtual
bool ConditionMatch::walk_done ( ) const
inlineprivate

Definition at line 73 of file bgp_condition_listener.h.

Friends And Related Function Documentation

friend class BgpConditionListener
friend

Definition at line 67 of file bgp_condition_listener.h.

void intrusive_ptr_add_ref ( ConditionMatch match)
friend

Definition at line 86 of file bgp_condition_listener.h.

void intrusive_ptr_release ( ConditionMatch match)
friend

Definition at line 90 of file bgp_condition_listener.h.

Member Data Documentation

bool ConditionMatch::deleted_
private

Definition at line 77 of file bgp_condition_listener.h.

tbb::mutex ConditionMatch::mutex_
private

Definition at line 80 of file bgp_condition_listener.h.

uint32_t ConditionMatch::num_matchstate_
private

Definition at line 81 of file bgp_condition_listener.h.

tbb::atomic<int> ConditionMatch::refcount_
private

Definition at line 83 of file bgp_condition_listener.h.

bool ConditionMatch::walk_done_
private

Definition at line 78 of file bgp_condition_listener.h.


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