#include <RouteCache.h>
Public Member Functions | |
CRouteCacheTable () | |
virtual | ~CRouteCacheTable () |
CRouteCacheItem * | Find (const GGUID *pGUID) |
CRouteCacheItem * | Add (const GGUID *pGUID, const CNeighbour *pNeighbour, const SOCKADDR_IN *pEndpoint, DWORD nTime=0) |
void | Remove (CNeighbour *pNeighbour) |
void | Resize (DWORD nSize) |
DWORD | GetNextSize (DWORD nDesired) |
void | Clear () |
BOOL | IsFull () const |
Protected Attributes | |
CRouteCacheItem * | m_pHash [1024] |
CRouteCacheItem * | m_pFree |
CRouteCacheItem * | m_pBuffer |
DWORD | m_nBuffer |
DWORD | m_nUsed |
DWORD | m_tFirst |
DWORD | m_tLast |
|
Definition at line 170 of file RouteCache.cpp. References Clear(), m_nBuffer, m_nUsed, m_pBuffer, and NULL. |
|
Definition at line 178 of file RouteCache.cpp. |
|
Definition at line 201 of file RouteCache.cpp. References HASH_MASK, m_nBuffer, m_nUsed, CRouteCacheItem::m_pEndpoint, m_pFree, CRouteCacheItem::m_pGUID, m_pHash, CRouteCacheItem::m_pNeighbour, CRouteCacheItem::m_pNext, CRouteCacheItem::m_tAdded, m_tFirst, m_tLast, and NULL. Referenced by CRouteCache::Add(). |
|
Definition at line 305 of file RouteCache.cpp. References Resize(). Referenced by CRouteCache::Clear(), and CRouteCacheTable(). |
|
Definition at line 186 of file RouteCache.cpp. References HASH_MASK, CRouteCacheItem::m_pGUID, m_pHash, CRouteCacheItem::m_pNext, and NULL. Referenced by CRouteCache::Lookup(). |
|
Definition at line 297 of file RouteCache.cpp. References m_nBuffer, m_tFirst, and m_tLast. Referenced by CRouteCache::Add(). |
|
Definition at line 68 of file RouteCache.h. References m_nBuffer, and m_nUsed. Referenced by CRouteCache::Add(). |
|
Definition at line 233 of file RouteCache.cpp. References HASH_SIZE, m_nUsed, m_pFree, m_pHash, and CRouteCacheItem::m_pNext. Referenced by CRouteCache::Remove(). |
|
Definition at line 262 of file RouteCache.cpp. References BUFFER_BLOCK_SIZE, HASH_SIZE, m_nBuffer, m_nUsed, m_pBuffer, m_pFree, m_pHash, CRouteCacheItem::m_pNext, m_tFirst, m_tLast, MAX_BUFFER_SIZE, MIN_BUFFER_SIZE, and NULL. Referenced by CRouteCache::Add(), and Clear(). |
|
Definition at line 54 of file RouteCache.h. Referenced by Add(), CRouteCacheTable(), GetNextSize(), IsFull(), Resize(), and ~CRouteCacheTable(). |
|
Definition at line 55 of file RouteCache.h. Referenced by Add(), CRouteCacheTable(), IsFull(), Remove(), and Resize(). |
|
Definition at line 53 of file RouteCache.h. Referenced by CRouteCacheTable(), Resize(), and ~CRouteCacheTable(). |
|
Definition at line 52 of file RouteCache.h. |
|
Definition at line 51 of file RouteCache.h. |
|
Definition at line 56 of file RouteCache.h. Referenced by Add(), GetNextSize(), and Resize(). |
|
Definition at line 57 of file RouteCache.h. Referenced by Add(), GetNextSize(), and Resize(). |