| Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages 
 acdk::lang::sys::AbstractAllocator Class Reference#include <Allocator.h>
 Inheritance diagram for acdk::lang::sys::AbstractAllocator:
  List of all members. 
 Detailed DescriptionThe AbstractAllocator allocates for Object types a little bit memory, where the beginning of the allocated block a pointer to the Allocator can be found.
The returned Object pointer is at offset ALIGNEDSIZEOF(MemChunkHeader). 
All operations are protected by a simple/fast mutex 
 
 
 Constructor & Destructor Documentation
 
  
    | 
        
          | acdk::lang::sys::AbstractAllocator::AbstractAllocator | ( | int | allocatorFlags, |  
          |  |  | const core_string & | name |  
          |  | ) |  |  |  
 
 Member Function Documentation
 
  
    | 
        
          | virtual void* acdk::lang::sys::AbstractAllocator::allocate | ( | size_t | size, |  
          |  |  | AllocatedType | at = RawMem |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void acdk::lang::sys::AbstractAllocator::deallocate | ( | void * | ptr, |  
          |  |  | AllocatedType | at = RawMem |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual bool acdk::lang::sys::AbstractAllocator::doGc | ( | bool | threadStorage = true, |  
          |  |  | bool | force = false |  
          |  | ) |  [virtual] |  |  
  
    |  | 
try to garbage collect items
 
 Parameters:
  
    | threadStorage | if true only object allocated in the current thread should be gced |  | force | if true also release internal buffer | 
 Returns:true if any storage was freed 
 
Implements acdk::lang::sys::Allocator.
 
Reimplemented in acdk::lang::sys::PagedAllocator.     |  
 
  
    | 
        
          | virtual const AllocatorInfo& acdk::lang::sys::AbstractAllocator::getAllocatorInfo | ( |  | ) |  [inline, virtual] |  |  
 
 
  
    | 
        
          | virtual void acdk::lang::sys::AbstractAllocator::lock | ( |  | ) |  [inline, virtual] |  |  
 
  
    | 
        
          | const char* acdk::lang::sys::AbstractAllocator::name | ( |  | ) | const  [inline] |  |  
 
  
    | 
        
          | virtual void* acdk::lang::sys::AbstractAllocator::raw_allocate | ( | size_t | size, |  
          |  |  | AllocatedType | type |  
          |  | ) |  [pure virtual] |  |  
 
  
    | 
        
          | virtual void acdk::lang::sys::AbstractAllocator::raw_deallocate | ( | size_t | size, |  
          |  |  | void * | ptr, |  
          |  |  | AllocatedType | type |  
          |  | ) |  [pure virtual] |  |  
 
  
    | 
        
          | virtual void acdk::lang::sys::AbstractAllocator::unlock | ( |  | ) |  [inline, virtual] |  |  
 Member Data Documentation
 
 |