![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <RegionAllocator.hpp>
Inheritance diagram for cat::RegionAllocator:Classes | |
| struct | RegionInfo |
| struct | RegionInfoHead |
Public Member Functions | |
| void * | Acquire (u32 bytes) |
| template<class T > | |
| T * | AcquireBuffer (u32 extra_bytes=0) |
| template<class T > | |
| CAT_INLINE void | Delete (T *ptr) |
| void | Release (void *ptr) |
| void * | Resize (void *ptr, u32 bytes) |
| void | Shutdown () |
| bool | Valid () |
Protected Attributes | |
| u32 | bitmap_dwords [REGION_COUNT] |
| u32 | blocks_per_region [REGION_COUNT] |
| u32 | bytes_overall |
| RegionInfo * | region_info [REGION_COUNT] |
| u8 * | regions [REGION_COUNT] |
Static Protected Attributes | |
| static const u32 | BLOCK_SIZE [REGION_COUNT] |
| static const u32 | REGION_COUNT = 6 |
Private Member Functions | |
| CAT_SINGLETON (RegionAllocator) | |
Definition at line 43 of file RegionAllocator.hpp.
| void* cat::RegionAllocator::Acquire | ( | u32 | bytes | ) |
| cat::RegionAllocator::CAT_SINGLETON | ( | RegionAllocator | ) | [private] |
| CAT_INLINE void cat::RegionAllocator::Delete | ( | T * | ptr | ) | [inline] |
Definition at line 81 of file RegionAllocator.hpp.
References Release().
Referenced by cat::FIFO::Queue< T >::Dequeue(), and cat::FIFO::Queue< T >::~Queue().
{
ptr->~T();
Release(ptr);
}
| void cat::RegionAllocator::Release | ( | void * | ptr | ) |
| void* cat::RegionAllocator::Resize | ( | void * | ptr, |
| u32 | bytes | ||
| ) |
Referenced by cat::AsyncBuffer::Resize().
| void cat::RegionAllocator::Shutdown | ( | ) |
| bool cat::RegionAllocator::Valid | ( | ) |
u32 cat::RegionAllocator::bitmap_dwords[REGION_COUNT] [protected] |
Definition at line 64 of file RegionAllocator.hpp.
const u32 cat::RegionAllocator::BLOCK_SIZE[REGION_COUNT] [static, protected] |
Definition at line 60 of file RegionAllocator.hpp.
u32 cat::RegionAllocator::blocks_per_region[REGION_COUNT] [protected] |
Definition at line 63 of file RegionAllocator.hpp.
u32 cat::RegionAllocator::bytes_overall [protected] |
Definition at line 62 of file RegionAllocator.hpp.
const u32 cat::RegionAllocator::REGION_COUNT = 6 [static, protected] |
Definition at line 59 of file RegionAllocator.hpp.
RegionInfo* cat::RegionAllocator::region_info[REGION_COUNT] [protected] |
Definition at line 66 of file RegionAllocator.hpp.
u8* cat::RegionAllocator::regions[REGION_COUNT] [protected] |
Definition at line 65 of file RegionAllocator.hpp.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.