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

#include <mpls_index.h>

Inheritance diagram for NexthopIndexResourceKey:
Collaboration diagram for NexthopIndexResourceKey:

Public Member Functions

 NexthopIndexResourceKey (ResourceManager *rm, NextHopKey *nh_key)
 
virtual ~NexthopIndexResourceKey ()
 
virtual const std::string ToString ()
 
virtual bool IsLess (const ResourceKey &rhs) const
 
virtual void Backup (ResourceData *data, uint16_t op)
 
void BackupInterfaceResource (ResourceData *data, uint16_t op)
 
void BackupVrfResource (ResourceData *data, uint16_t op)
 
void BackupVlanResource (ResourceData *data, uint16_t op)
 
const NextHopKeyGetNhKey () const
 
- Public Member Functions inherited from MplsIndexResourceKey
 MplsIndexResourceKey (ResourceManager *rm, Type type)
 
virtual ~MplsIndexResourceKey ()
 
Type type () const
 
- Public Member Functions inherited from IndexResourceKey
 IndexResourceKey (ResourceManager *rm, Resource::Type resource_key_type)
 
virtual ~IndexResourceKey ()
 
- Public Member Functions inherited from ResourceKey
 ResourceKey (ResourceManager *rm, Resource::Type type)
 
virtual ~ResourceKey ()
 
bool operator< (const ResourceKey &rhs) const
 
void set_dirty ()
 
void reset_dirty ()
 
bool dirty () const
 
ResourceTableresource_table ()
 
ResourceManagerrm ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (NexthopIndexResourceKey)
 

Private Attributes

std::unique_ptr< NextHopKeynh_key_
 

Additional Inherited Members

- Public Types inherited from MplsIndexResourceKey
enum  Type { NEXTHOP, ROUTE, TEST, EDGEMCAST }
 

Detailed Description

Definition at line 42 of file mpls_index.h.

Constructor & Destructor Documentation

NexthopIndexResourceKey::NexthopIndexResourceKey ( ResourceManager rm,
NextHopKey nh_key 
)

Definition at line 34 of file mpls_index.cc.

NexthopIndexResourceKey::~NexthopIndexResourceKey ( )
virtual

Definition at line 40 of file mpls_index.cc.

Member Function Documentation

void NexthopIndexResourceKey::Backup ( ResourceData data,
uint16_t  op 
)
virtual

Reimplemented from MplsIndexResourceKey.

Definition at line 58 of file mpls_index.cc.

Here is the call graph for this function:

void NexthopIndexResourceKey::BackupInterfaceResource ( ResourceData data,
uint16_t  op 
)

Definition at line 76 of file mpls_index.cc.

Here is the call graph for this function:

void NexthopIndexResourceKey::BackupVlanResource ( ResourceData data,
uint16_t  op 
)

Definition at line 142 of file mpls_index.cc.

Here is the call graph for this function:

void NexthopIndexResourceKey::BackupVrfResource ( ResourceData data,
uint16_t  op 
)

Definition at line 115 of file mpls_index.cc.

Here is the call graph for this function:

NexthopIndexResourceKey::DISALLOW_COPY_AND_ASSIGN ( NexthopIndexResourceKey  )
private
const NextHopKey* NexthopIndexResourceKey::GetNhKey ( ) const
inline

Definition at line 53 of file mpls_index.h.

bool NexthopIndexResourceKey::IsLess ( const ResourceKey rhs) const
virtual

Implements IndexResourceKey.

Definition at line 43 of file mpls_index.cc.

Here is the call graph for this function:

virtual const std::string NexthopIndexResourceKey::ToString ( )
inlinevirtual

Reimplemented from IndexResourceKey.

Definition at line 47 of file mpls_index.h.

Member Data Documentation

std::unique_ptr<NextHopKey> NexthopIndexResourceKey::nh_key_
private

Definition at line 55 of file mpls_index.h.


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