| 
    Jpp
    
   | 
 
Memory management for small objects. More...
#include <JRAM.hh>
  
Public Member Functions | |
| JRAM (const std::size_t block_size, const std::size_t number_of_blocks=65536) | |
| Constructor.  More... | |
| ~JRAM () | |
| Destructor.  More... | |
| long long int | getTotalRAM () | 
| Get total used RAM.  More... | |
| long long int | getFreeRAM () | 
| Get total free RAM.  More... | |
| void * | allocate () | 
| Allocate memory.  More... | |
| void | free (void *p) | 
| Deallocate memory.  More... | |
| void | gc () | 
| Run garbage collector.  More... | |
Private Member Functions | |
| void | addMemory () | 
| Add memory.  More... | |
Private Attributes | |
| const std::size_t | BLOCK_SIZE | 
| const std::size_t | numberOfBlocks | 
| std::vector< unsigned char * > | memory | 
Memory management for small objects.
This object allocator is optimised for speed at the cost of some memory overhead.
      
  | 
  inline | 
      
  | 
  inline | 
Get total used RAM.
      
  | 
  inline | 
Get total free RAM.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  private | 
 1.8.16