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

#include <etree.h>

Public Types

typedef boost::array< uint8_t,
kSize
bytes_type
 

Public Member Functions

 ETree (bool leaf, int label=0)
 
 ETree (const bytes_type &data)
 
bool leaf () const
 
int label () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
std::string ToString ()
 

Static Public Attributes

static const int kSize = 8
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 16 of file etree.h.

Member Typedef Documentation

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

Definition at line 19 of file etree.h.

Constructor & Destructor Documentation

ETree::ETree ( bool  leaf,
int  label = 0 
)
explicit

Definition at line 16 of file etree.cc.

Here is the call graph for this function:

ETree::ETree ( const bytes_type data)
explicit

Definition at line 25 of file etree.cc.

Member Function Documentation

const bytes_type& ETree::GetExtCommunity ( ) const
inline

Definition at line 27 of file etree.h.

const uint64_t ETree::GetExtCommunityValue ( ) const
inline

Definition at line 31 of file etree.h.

Here is the call graph for this function:

int ETree::label ( ) const

Definition at line 33 of file etree.cc.

Here is the call graph for this function:

bool ETree::leaf ( ) const

Definition at line 29 of file etree.cc.

std::string ETree::ToString ( )

Definition at line 44 of file etree.cc.

Here is the call graph for this function:

Member Data Documentation

bytes_type ETree::data_
private

Definition at line 38 of file etree.h.

const int ETree::kSize = 8
static

Definition at line 18 of file etree.h.


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