OpenSDN source code
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_type & GetExtCommunity () 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 42 of file load_balance.h.

Member Typedef Documentation

◆ bytes_type

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

Definition at line 45 of file load_balance.h.

Constructor & Destructor Documentation

◆ LoadBalance() [1/5]

LoadBalance::LoadBalance ( )

Definition at line 83 of file load_balance.cc.

Here is the call graph for this function:

◆ LoadBalance() [2/5]

LoadBalance::LoadBalance ( const bytes_type &  data)
explicit

Definition at line 89 of file load_balance.cc.

◆ LoadBalance() [3/5]

LoadBalance::LoadBalance ( const LoadBalanceAttribute &  attr)
explicit

Definition at line 111 of file load_balance.cc.

Here is the call graph for this function:

◆ LoadBalance() [4/5]

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

Definition at line 116 of file load_balance.cc.

Here is the call graph for this function:

◆ LoadBalance() [5/5]

LoadBalance::LoadBalance ( const BgpPath *  path)
explicit

Definition at line 93 of file load_balance.cc.

Here is the call graph for this function:

Member Function Documentation

◆ FillAttribute()

void LoadBalance::FillAttribute ( LoadBalanceAttribute *  attr)

Definition at line 163 of file load_balance.cc.

Here is the call graph for this function:

◆ GetExtCommunity()

const bytes_type& LoadBalance::GetExtCommunity ( ) const
inline

Definition at line 120 of file load_balance.h.

◆ GetExtCommunityValue()

const uint64_t LoadBalance::GetExtCommunityValue ( ) const
inline

Definition at line 121 of file load_balance.h.

Here is the call graph for this function:

◆ IsDefault()

const bool LoadBalance::IsDefault ( ) const

Definition at line 240 of file load_balance.cc.

Here is the call graph for this function:

◆ IsPresent()

bool LoadBalance::IsPresent ( const BgpPath *  path)
static

Definition at line 222 of file load_balance.cc.

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 248 of file load_balance.cc.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 244 of file load_balance.cc.

Here is the call graph for this function:

◆ SetL3DestinationAddress()

void LoadBalance::SetL3DestinationAddress ( bool  flag)

Definition at line 182 of file load_balance.cc.

Here is the call graph for this function:

◆ SetL3SourceAddress()

void LoadBalance::SetL3SourceAddress ( bool  flag)

Definition at line 174 of file load_balance.cc.

Here is the call graph for this function:

◆ SetL4DestinationPort()

void LoadBalance::SetL4DestinationPort ( bool  flag)

Definition at line 206 of file load_balance.cc.

Here is the call graph for this function:

◆ SetL4Protocol()

void LoadBalance::SetL4Protocol ( bool  flag)

Definition at line 190 of file load_balance.cc.

Here is the call graph for this function:

◆ SetL4SourcePort()

void LoadBalance::SetL4SourcePort ( bool  flag)

Definition at line 198 of file load_balance.cc.

Here is the call graph for this function:

◆ SetSourceBias()

void LoadBalance::SetSourceBias ( bool  flag)

Definition at line 214 of file load_balance.cc.

Here is the call graph for this function:

◆ ShowAttribute()

void LoadBalance::ShowAttribute ( ShowLoadBalance *  show_load_balance) const

Definition at line 252 of file load_balance.cc.

Here is the call graph for this function:

◆ Subtype()

uint8_t LoadBalance::Subtype ( ) const
inline

Definition at line 119 of file load_balance.h.

◆ ToAttribute()

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

Definition at line 168 of file load_balance.cc.

Here is the call graph for this function:

◆ ToString()

string LoadBalance::ToString ( ) const

Definition at line 275 of file load_balance.cc.

Here is the call graph for this function:

◆ Type()

uint8_t LoadBalance::Type ( ) const
inline

Definition at line 118 of file load_balance.h.

Member Data Documentation

◆ data_

bytes_type LoadBalance::data_
private

Definition at line 140 of file load_balance.h.

◆ kSize

const int LoadBalance::kSize = 8
static

Definition at line 44 of file load_balance.h.


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