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

#include <load_balance.h>

Classes

struct  LoadBalanceAttribute
 

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 LoadBalance ()
 
 LoadBalance (const bytes_type &data)
 
 LoadBalance (const LoadBalanceAttribute &attr)
 
 LoadBalance (const autogen::LoadBalanceType &lb_type)
 
 LoadBalance (const BgpPath *path)
 
bool operator== (const LoadBalance &other) const
 
bool operator!= (const LoadBalance &other) const
 
uint8_t Type () const
 
uint8_t Subtype () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
const LoadBalanceAttribute ToAttribute () const
 
void FillAttribute (LoadBalanceAttribute *attr)
 
const bool IsDefault () const
 
void ShowAttribute (ShowLoadBalance *show_load_balance) const
 
std::string ToString () const
 
void SetL3SourceAddress (bool flag)
 
void SetL3DestinationAddress (bool flag)
 
void SetL4Protocol (bool flag)
 
void SetL4SourcePort (bool flag)
 
void SetL4DestinationPort (bool flag)
 
void SetSourceBias (bool flag)
 

Static Public Member Functions

static bool IsPresent (const BgpPath *path)
 

Static Public Attributes

static const int kSize = 8
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 41 of file load_balance.h.

Member Typedef Documentation

typedef boost::array<uint8_t, kSize> LoadBalance::bytes_type

Definition at line 44 of file load_balance.h.

Constructor & Destructor Documentation

LoadBalance::LoadBalance ( )

Definition at line 82 of file load_balance.cc.

Here is the call graph for this function:

LoadBalance::LoadBalance ( const bytes_type data)
explicit

Definition at line 88 of file load_balance.cc.

LoadBalance::LoadBalance ( const LoadBalanceAttribute attr)
explicit

Definition at line 110 of file load_balance.cc.

Here is the call graph for this function:

LoadBalance::LoadBalance ( const autogen::LoadBalanceType &  lb_type)
explicit

Definition at line 115 of file load_balance.cc.

Here is the call graph for this function:

LoadBalance::LoadBalance ( const BgpPath path)
explicit

Definition at line 92 of file load_balance.cc.

Here is the call graph for this function:

Member Function Documentation

void LoadBalance::FillAttribute ( LoadBalanceAttribute attr)

Definition at line 162 of file load_balance.cc.

Here is the call graph for this function:

const bytes_type& LoadBalance::GetExtCommunity ( ) const
inline

Definition at line 119 of file load_balance.h.

const uint64_t LoadBalance::GetExtCommunityValue ( ) const
inline

Definition at line 120 of file load_balance.h.

const bool LoadBalance::IsDefault ( ) const

Definition at line 239 of file load_balance.cc.

Here is the call graph for this function:

bool LoadBalance::IsPresent ( const BgpPath path)
static

Definition at line 221 of file load_balance.cc.

Here is the call graph for this function:

bool LoadBalance::operator!= ( const LoadBalance other) const

Definition at line 247 of file load_balance.cc.

Here is the call graph for this function:

bool LoadBalance::operator== ( const LoadBalance other) const

Definition at line 243 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetL3DestinationAddress ( bool  flag)

Definition at line 181 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetL3SourceAddress ( bool  flag)

Definition at line 173 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetL4DestinationPort ( bool  flag)

Definition at line 205 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetL4Protocol ( bool  flag)

Definition at line 189 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetL4SourcePort ( bool  flag)

Definition at line 197 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::SetSourceBias ( bool  flag)

Definition at line 213 of file load_balance.cc.

Here is the call graph for this function:

void LoadBalance::ShowAttribute ( ShowLoadBalance *  show_load_balance) const

Definition at line 251 of file load_balance.cc.

Here is the call graph for this function:

uint8_t LoadBalance::Subtype ( ) const
inline

Definition at line 118 of file load_balance.h.

const LoadBalance::LoadBalanceAttribute LoadBalance::ToAttribute ( ) const

Definition at line 167 of file load_balance.cc.

Here is the call graph for this function:

string LoadBalance::ToString ( ) const

Definition at line 274 of file load_balance.cc.

Here is the call graph for this function:

uint8_t LoadBalance::Type ( ) const
inline

Definition at line 117 of file load_balance.h.

Member Data Documentation

bytes_type LoadBalance::data_
private

Definition at line 139 of file load_balance.h.

const int LoadBalance::kSize = 8
static

Definition at line 43 of file load_balance.h.


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