OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpSenderPartition::PeerState Class Reference
Collaboration diagram for BgpSenderPartition::PeerState:

Classes

class  circular_iterator
 
class  iterator
 

Public Types

typedef map< size_t, PeerRibStateMap
 

Public Member Functions

 PeerState (IPeerUpdate *peer)
 
void Add (RibState *rs)
 
void Remove (RibState *rs)
 
bool IsMember (size_t index) const
 
iterator begin (const RibStateMap &indexmap)
 
iterator end (const RibStateMap &indexmap)
 
circular_iterator circular_begin (const RibStateMap &indexmap)
 
circular_iterator circular_end (const RibStateMap &indexmap)
 
void SetIteratorStart (size_t start)
 
void SetQueueActive (size_t rib_index, int queue_id)
 
void SetQueueInactive (size_t rib_index, int queue_id)
 
bool IsQueueActive (size_t rib_index, int queue_id)
 
int QueueCount (int queue_id)
 
IPeerUpdatepeer () const
 
void set_index (size_t index)
 
size_t index () const
 
bool in_sync () const
 
void clear_sync ()
 
void SetSync ()
 
bool send_ready () const
 
void set_send_ready (bool toggle)
 
bool empty () const
 
bool CheckInvariants () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (PeerState)
 

Private Attributes

IPeerUpdatekey_
 
size_t index_
 
Map rib_set_
 
BitSet rib_bitset_
 
vector< int > qactive_cnt_
 
bool in_sync_
 
tbb::atomic< bool > send_ready_
 
size_t rib_iterator_
 

Detailed Description

Definition at line 65 of file bgp_update_sender.cc.

Member Typedef Documentation

Definition at line 67 of file bgp_update_sender.cc.

Constructor & Destructor Documentation

BgpSenderPartition::PeerState::PeerState ( IPeerUpdate peer)
inlineexplicit

Definition at line 141 of file bgp_update_sender.cc.

Member Function Documentation

void BgpSenderPartition::PeerState::Add ( RibState rs)

Definition at line 340 of file bgp_update_sender.cc.

Here is the call graph for this function:

iterator BgpSenderPartition::PeerState::begin ( const RibStateMap indexmap)
inline

Definition at line 159 of file bgp_update_sender.cc.

Here is the call graph for this function:

bool BgpSenderPartition::PeerState::CheckInvariants ( ) const
inline

Definition at line 219 of file bgp_update_sender.cc.

circular_iterator BgpSenderPartition::PeerState::circular_begin ( const RibStateMap indexmap)
inline

Definition at line 168 of file bgp_update_sender.cc.

circular_iterator BgpSenderPartition::PeerState::circular_end ( const RibStateMap indexmap)
inline

Definition at line 171 of file bgp_update_sender.cc.

void BgpSenderPartition::PeerState::clear_sync ( )
inline

Definition at line 211 of file bgp_update_sender.cc.

BgpSenderPartition::PeerState::DISALLOW_COPY_AND_ASSIGN ( PeerState  )
private
bool BgpSenderPartition::PeerState::empty ( ) const
inline

Definition at line 217 of file bgp_update_sender.cc.

iterator BgpSenderPartition::PeerState::end ( const RibStateMap indexmap)
inline

Definition at line 164 of file bgp_update_sender.cc.

bool BgpSenderPartition::PeerState::in_sync ( ) const
inline

Definition at line 210 of file bgp_update_sender.cc.

size_t BgpSenderPartition::PeerState::index ( ) const
inline

Definition at line 208 of file bgp_update_sender.cc.

bool BgpSenderPartition::PeerState::IsMember ( size_t  index) const
inline

Definition at line 155 of file bgp_update_sender.cc.

Here is the call graph for this function:

bool BgpSenderPartition::PeerState::IsQueueActive ( size_t  rib_index,
int  queue_id 
)
inline

Definition at line 197 of file bgp_update_sender.cc.

Here is the call graph for this function:

IPeerUpdate* BgpSenderPartition::PeerState::peer ( ) const
inline

Definition at line 206 of file bgp_update_sender.cc.

int BgpSenderPartition::PeerState::QueueCount ( int  queue_id)
inline

Definition at line 204 of file bgp_update_sender.cc.

void BgpSenderPartition::PeerState::Remove ( RibState rs)

Definition at line 347 of file bgp_update_sender.cc.

Here is the call graph for this function:

bool BgpSenderPartition::PeerState::send_ready ( ) const
inline

Definition at line 214 of file bgp_update_sender.cc.

void BgpSenderPartition::PeerState::set_index ( size_t  index)
inline

Definition at line 207 of file bgp_update_sender.cc.

Here is the call graph for this function:

void BgpSenderPartition::PeerState::set_send_ready ( bool  toggle)
inline

Definition at line 215 of file bgp_update_sender.cc.

void BgpSenderPartition::PeerState::SetIteratorStart ( size_t  start)
inline

Definition at line 175 of file bgp_update_sender.cc.

void BgpSenderPartition::PeerState::SetQueueActive ( size_t  rib_index,
int  queue_id 
)
inline

Definition at line 177 of file bgp_update_sender.cc.

Here is the call graph for this function:

void BgpSenderPartition::PeerState::SetQueueInactive ( size_t  rib_index,
int  queue_id 
)
inline

Definition at line 187 of file bgp_update_sender.cc.

Here is the call graph for this function:

void BgpSenderPartition::PeerState::SetSync ( )

Definition at line 356 of file bgp_update_sender.cc.

Member Data Documentation

bool BgpSenderPartition::PeerState::in_sync_
private

Definition at line 232 of file bgp_update_sender.cc.

size_t BgpSenderPartition::PeerState::index_
private

Definition at line 228 of file bgp_update_sender.cc.

IPeerUpdate* BgpSenderPartition::PeerState::key_
private

Definition at line 227 of file bgp_update_sender.cc.

vector<int> BgpSenderPartition::PeerState::qactive_cnt_
private

Definition at line 231 of file bgp_update_sender.cc.

BitSet BgpSenderPartition::PeerState::rib_bitset_
private

Definition at line 230 of file bgp_update_sender.cc.

size_t BgpSenderPartition::PeerState::rib_iterator_
private

Definition at line 234 of file bgp_update_sender.cc.

Map BgpSenderPartition::PeerState::rib_set_
private

Definition at line 229 of file bgp_update_sender.cc.

tbb::atomic<bool> BgpSenderPartition::PeerState::send_ready_
private

Definition at line 233 of file bgp_update_sender.cc.


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