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

#include <index_resource.h>

Inheritance diagram for IndexResourceTable:
Collaboration diagram for IndexResourceTable:

Public Member Functions

 IndexResourceTable (ResourceManager *rm)
 
virtual ~IndexResourceTable ()
 
void ReserveIndex (uint32_t index)
 
void ReleaseIndex (uint32_t index)
 
void Release (uint32_t index)
 
virtual ResourceTable::DataPtr AllocateData (ResourceKeyPtr key)
 
virtual const std::string ToString ()
 
uint32_t AllocateIndex (ResourceKeyPtr key)
 
void RestoreIndex (uint32_t index, ResourceKeyPtr key)
 
void RestoreKey (KeyPtr key, DataPtr data)
 
void ReleaseKey (KeyPtr key, DataPtr data)
 
- Public Member Functions inherited from ResourceTable
 ResourceTable (ResourceManager *rm)
 
virtual ~ResourceTable ()
 
void InsertKey (KeyPtr key, DataPtr data)
 
void DeleteKey (KeyPtr key)
 
ResourceDataFindKey (KeyPtr key)
 
DataPtr FindKeyPtr (KeyPtr key)
 
void FlushStale ()
 
ResourceTable::DataPtr Allocate (KeyPtr key)
 
ResourceManagerresource_manager () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (IndexResourceTable)
 

Private Attributes

IndexVectorResource
< ResourceKeyPtr
index_vector_
 

Additional Inherited Members

- Public Types inherited from ResourceTable
typedef boost::shared_ptr
< ResourceKey
KeyPtr
 
typedef boost::shared_ptr
< ResourceData
DataPtr
 
typedef ResourceTable::KeyPtr ResourceKeyPtr
 
typedef std::map< KeyPtr,
DataPtr, KeyDataMapComparator
KeyDataMap
 
typedef KeyDataMap::iterator KeyDataMapIter
 

Detailed Description

Definition at line 41 of file index_resource.h.

Constructor & Destructor Documentation

IndexResourceTable::IndexResourceTable ( ResourceManager rm)

Definition at line 32 of file index_resource.cc.

IndexResourceTable::~IndexResourceTable ( )
virtual

Definition at line 36 of file index_resource.cc.

Member Function Documentation

ResourceTable::DataPtr IndexResourceTable::AllocateData ( ResourceKeyPtr  key)
virtual

Implements ResourceTable.

Definition at line 55 of file index_resource.cc.

Here is the call graph for this function:

uint32_t IndexResourceTable::AllocateIndex ( ResourceKeyPtr  key)

Definition at line 67 of file index_resource.cc.

Here is the call graph for this function:

IndexResourceTable::DISALLOW_COPY_AND_ASSIGN ( IndexResourceTable  )
private
void IndexResourceTable::Release ( uint32_t  index)

Definition at line 48 of file index_resource.cc.

Here is the call graph for this function:

void IndexResourceTable::ReleaseIndex ( uint32_t  index)

Definition at line 44 of file index_resource.cc.

Here is the call graph for this function:

void IndexResourceTable::ReleaseKey ( KeyPtr  key,
DataPtr  data 
)
virtual

Implements ResourceTable.

Definition at line 79 of file index_resource.cc.

Here is the call graph for this function:

void IndexResourceTable::ReserveIndex ( uint32_t  index)

Definition at line 39 of file index_resource.cc.

Here is the call graph for this function:

void IndexResourceTable::RestoreIndex ( uint32_t  index,
ResourceKeyPtr  key 
)

Definition at line 63 of file index_resource.cc.

Here is the call graph for this function:

void IndexResourceTable::RestoreKey ( KeyPtr  key,
DataPtr  data 
)
virtual

Implements ResourceTable.

Definition at line 73 of file index_resource.cc.

Here is the call graph for this function:

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

Implements ResourceTable.

Definition at line 49 of file index_resource.h.

Member Data Documentation

IndexVectorResource<ResourceKeyPtr> IndexResourceTable::index_vector_
private

Definition at line 57 of file index_resource.h.


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