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

#include <bgp_aspath.h>

Collaboration diagram for As4Path:

Public Member Functions

 As4Path (As4PathDB *aspath_db)
 
 As4Path (As4PathDB *aspath_db, const As4PathSpec &spec)
 
virtual ~As4Path ()
 
virtual void Remove ()
 
int AsCount () const
 
int CompareTo (const As4Path &rhs) const
 
const As4PathSpecpath () const
 
bool empty () const
 
as_t neighbor_as () const
 

Private Attributes

tbb::atomic< int > refcount_
 
As4PathDBaspath_db_
 
As4PathSpec path_
 

Friends

std::size_t hash_value (As4Path const &as_path)
 
int intrusive_ptr_add_ref (const As4Path *cpath)
 
int intrusive_ptr_del_ref (const As4Path *cpath)
 
void intrusive_ptr_release (const As4Path *cpath)
 

Detailed Description

Definition at line 398 of file bgp_aspath.h.

Constructor & Destructor Documentation

As4Path::As4Path ( As4PathDB aspath_db)
inlineexplicit

Definition at line 400 of file bgp_aspath.h.

As4Path::As4Path ( As4PathDB aspath_db,
const As4PathSpec spec 
)
inlineexplicit

Definition at line 403 of file bgp_aspath.h.

virtual As4Path::~As4Path ( )
inlinevirtual

Definition at line 413 of file bgp_aspath.h.

Member Function Documentation

int As4Path::AsCount ( ) const
inline

Definition at line 415 of file bgp_aspath.h.

int As4Path::CompareTo ( const As4Path rhs) const
inline

Definition at line 429 of file bgp_aspath.h.

bool As4Path::empty ( ) const
inline

Definition at line 444 of file bgp_aspath.h.

as_t As4Path::neighbor_as ( ) const
inline

Definition at line 445 of file bgp_aspath.h.

Here is the call graph for this function:

const As4PathSpec& As4Path::path ( ) const
inline

Definition at line 443 of file bgp_aspath.h.

void As4Path::Remove ( )
virtual

Definition at line 725 of file bgp_aspath.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

std::size_t hash_value ( As4Path const &  as_path)
friend

Definition at line 447 of file bgp_aspath.h.

int intrusive_ptr_add_ref ( const As4Path cpath)
friend

Definition at line 463 of file bgp_aspath.h.

int intrusive_ptr_del_ref ( const As4Path cpath)
friend

Definition at line 467 of file bgp_aspath.h.

void intrusive_ptr_release ( const As4Path cpath)
friend

Definition at line 471 of file bgp_aspath.h.

Member Data Documentation

As4PathDB* As4Path::aspath_db_
private

Definition at line 459 of file bgp_aspath.h.

As4PathSpec As4Path::path_
private

Definition at line 460 of file bgp_aspath.h.

tbb::atomic<int> As4Path::refcount_
mutableprivate

Definition at line 458 of file bgp_aspath.h.


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