gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
PoolManager Class Referenceabstract

#include <pool_manager.hh>

Inheritance diagram for PoolManager:
SimplePoolManager

Public Member Functions

 PoolManager (uint32_t minAlloc, uint32_t poolSize)
 
uint32_t minAllocation ()
 
virtual std::string printRegion ()=0
 
virtual uint32_t regionSize (std::pair< uint32_t, uint32_t > &region)=0
 
virtual bool canAllocate (uint32_t numRegions, uint32_t size)=0
 
virtual uint32_t allocateRegion (const uint32_t size, uint32_t *reserved)=0
 
virtual void freeRegion (uint32_t firstIdx, uint32_t lastIdx)=0
 
uint32_t poolSize ()
 

Private Attributes

uint32_t _minAllocation
 
uint32_t _poolSize
 

Detailed Description

Definition at line 44 of file pool_manager.hh.

Constructor & Destructor Documentation

PoolManager::PoolManager ( uint32_t  minAlloc,
uint32_t  poolSize 
)

Definition at line 38 of file pool_manager.cc.

Member Function Documentation

virtual uint32_t PoolManager::allocateRegion ( const uint32_t  size,
uint32_t *  reserved 
)
pure virtual

Implemented in SimplePoolManager.

virtual bool PoolManager::canAllocate ( uint32_t  numRegions,
uint32_t  size 
)
pure virtual

Implemented in SimplePoolManager.

virtual void PoolManager::freeRegion ( uint32_t  firstIdx,
uint32_t  lastIdx 
)
pure virtual

Implemented in SimplePoolManager.

uint32_t PoolManager::minAllocation ( )
inline

Definition at line 48 of file pool_manager.hh.

References _minAllocation.

Referenced by SimplePoolManager::minAllocatedElements().

uint32_t PoolManager::poolSize ( )
inline
virtual std::string PoolManager::printRegion ( )
pure virtual

Implemented in SimplePoolManager.

virtual uint32_t PoolManager::regionSize ( std::pair< uint32_t, uint32_t > &  region)
pure virtual

Implemented in SimplePoolManager.

Member Data Documentation

uint32_t PoolManager::_minAllocation
private

Definition at line 61 of file pool_manager.hh.

Referenced by minAllocation().

uint32_t PoolManager::_poolSize
private

Definition at line 63 of file pool_manager.hh.

Referenced by poolSize().


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

Generated on Fri Jun 9 2017 13:04:17 for gem5 by doxygen 1.8.6