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

#include <security_group.h>

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 SecurityGroup4ByteAs (as_t asn, uint32_t id)
 
 SecurityGroup4ByteAs (const bytes_type &data)
 
as_t as_number () const
 
uint32_t security_group_id () const
 
bool IsGlobal () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
std::string ToString ()
 

Static Public Attributes

static const int kSize = 8
 
static const uint32_t kMinGlobalId = 1
 
static const uint32_t kMaxGlobalId = 7999999
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 43 of file security_group.h.

Member Typedef Documentation

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

Definition at line 48 of file security_group.h.

Constructor & Destructor Documentation

SecurityGroup4ByteAs::SecurityGroup4ByteAs ( as_t  asn,
uint32_t  id 
)

Definition at line 57 of file security_group.cc.

Here is the call graph for this function:

SecurityGroup4ByteAs::SecurityGroup4ByteAs ( const bytes_type data)
explicit

Definition at line 64 of file security_group.cc.

Member Function Documentation

as_t SecurityGroup4ByteAs::as_number ( ) const

Definition at line 68 of file security_group.cc.

Here is the call graph for this function:

const bytes_type& SecurityGroup4ByteAs::GetExtCommunity ( ) const
inline

Definition at line 57 of file security_group.h.

const uint64_t SecurityGroup4ByteAs::GetExtCommunityValue ( ) const
inline

Definition at line 61 of file security_group.h.

Here is the call graph for this function:

bool SecurityGroup4ByteAs::IsGlobal ( ) const

Definition at line 86 of file security_group.cc.

Here is the call graph for this function:

uint32_t SecurityGroup4ByteAs::security_group_id ( ) const

Definition at line 77 of file security_group.cc.

Here is the call graph for this function:

string SecurityGroup4ByteAs::ToString ( )

Definition at line 91 of file security_group.cc.

Here is the call graph for this function:

Member Data Documentation

bytes_type SecurityGroup4ByteAs::data_
private

Definition at line 67 of file security_group.h.

const uint32_t SecurityGroup4ByteAs::kMaxGlobalId = 7999999
static

Definition at line 47 of file security_group.h.

const uint32_t SecurityGroup4ByteAs::kMinGlobalId = 1
static

Definition at line 46 of file security_group.h.

const int SecurityGroup4ByteAs::kSize = 8
static

Definition at line 45 of file security_group.h.


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