| 
    Jpp
    15.0.1-rc.1-highQE
    
   the software that should make you happy 
   | 
 
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 | 
      
  | 
  inlineprivate | 
Add memory.
Definition at line 36 of file JRAM.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Run garbage collector.
Definition at line 140 of file JRAM.hh.
      
  | 
  private | 
 1.8.5