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

#include <metadata_ip.h>

Collaboration diagram for MetaDataIpAllocator:

Public Member Functions

 MetaDataIpAllocator (Agent *agent, uint16_t start, uint16_t end)
 
 ~MetaDataIpAllocator ()
 
MetaDataIpFindIndex (uint16_t id)
 

Private Member Functions

uint16_t AllocateIndex (MetaDataIp *ip)
 
void AllocateIndex (MetaDataIp *ipi, uint16_t index)
 
void ReleaseIndex (MetaDataIp *ip)
 
bool CanAddRoute (MetaDataIp *ip)
 
void AddFabricRoute (MetaDataIp *ip)
 
void DelFabricRoute (MetaDataIp *ip)
 
 DISALLOW_COPY_AND_ASSIGN (MetaDataIpAllocator)
 

Private Attributes

Agentagent_
 
IndexVector< MetaDataIp * > index_table_
 
uint16_t start_
 
uint16_t end_
 

Friends

class MetaDataIp
 

Detailed Description

Definition at line 100 of file metadata_ip.h.

Constructor & Destructor Documentation

MetaDataIpAllocator::MetaDataIpAllocator ( Agent agent,
uint16_t  start,
uint16_t  end 
)

Definition at line 159 of file metadata_ip.cc.

MetaDataIpAllocator::~MetaDataIpAllocator ( )

Definition at line 164 of file metadata_ip.cc.

Member Function Documentation

void MetaDataIpAllocator::AddFabricRoute ( MetaDataIp ip)
private

Definition at line 198 of file metadata_ip.cc.

Here is the call graph for this function:

uint16_t MetaDataIpAllocator::AllocateIndex ( MetaDataIp ip)
private

Definition at line 172 of file metadata_ip.cc.

Here is the call graph for this function:

void MetaDataIpAllocator::AllocateIndex ( MetaDataIp ipi,
uint16_t  index 
)
private

Definition at line 178 of file metadata_ip.cc.

Here is the call graph for this function:

bool MetaDataIpAllocator::CanAddRoute ( MetaDataIp ip)
private

Definition at line 189 of file metadata_ip.cc.

Here is the call graph for this function:

void MetaDataIpAllocator::DelFabricRoute ( MetaDataIp ip)
private

Definition at line 238 of file metadata_ip.cc.

Here is the call graph for this function:

MetaDataIpAllocator::DISALLOW_COPY_AND_ASSIGN ( MetaDataIpAllocator  )
private
MetaDataIp * MetaDataIpAllocator::FindIndex ( uint16_t  id)

Definition at line 167 of file metadata_ip.cc.

Here is the call graph for this function:

void MetaDataIpAllocator::ReleaseIndex ( MetaDataIp ip)
private

Definition at line 184 of file metadata_ip.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class MetaDataIp
friend

Definition at line 108 of file metadata_ip.h.

Member Data Documentation

Agent* MetaDataIpAllocator::agent_
private

Definition at line 117 of file metadata_ip.h.

uint16_t MetaDataIpAllocator::end_
private

Definition at line 120 of file metadata_ip.h.

IndexVector<MetaDataIp *> MetaDataIpAllocator::index_table_
private

Definition at line 118 of file metadata_ip.h.

uint16_t MetaDataIpAllocator::start_
private

Definition at line 119 of file metadata_ip.h.


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