|
OpenSDN source code
|
#include <index_resource.h>


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) |
| ResourceData * | FindKey (KeyPtr key) |
| DataPtr | FindKeyPtr (KeyPtr key) |
| void | FlushStale () |
| ResourceTable::DataPtr | Allocate (KeyPtr key) |
| ResourceManager * | resource_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 |
Definition at line 41 of file index_resource.h.
| IndexResourceTable::IndexResourceTable | ( | ResourceManager * | rm | ) |
Definition at line 32 of file index_resource.cc.
|
virtual |
Definition at line 36 of file index_resource.cc.
|
virtual |
Implements ResourceTable.
Definition at line 55 of file index_resource.cc.

| uint32_t IndexResourceTable::AllocateIndex | ( | ResourceKeyPtr | key | ) |
|
private |
| void IndexResourceTable::Release | ( | uint32_t | index | ) |
| void IndexResourceTable::ReleaseIndex | ( | uint32_t | index | ) |
Implements ResourceTable.
Definition at line 79 of file index_resource.cc.

| void IndexResourceTable::ReserveIndex | ( | uint32_t | index | ) |
| void IndexResourceTable::RestoreIndex | ( | uint32_t | index, |
| ResourceKeyPtr | key | ||
| ) |
Implements ResourceTable.
Definition at line 73 of file index_resource.cc.

|
inlinevirtual |
Implements ResourceTable.
Definition at line 49 of file index_resource.h.
|
private |
Definition at line 57 of file index_resource.h.