Grok  7.6.0
Data Structures | Public Member Functions | Private Attributes
ojph::mem_elastic_allocator Class Reference

#include <ojph_mem.h>

Data Structures

struct  stores_list
 

Public Member Functions

 mem_elastic_allocator (int chunk_size)
 
 ~mem_elastic_allocator ()
 
void get_buffer (int needed_bytes, coded_lists *&p)
 

Private Attributes

stores_liststore
 
stores_listcur_store
 
int total_allocated
 
const int chunk_size
 

Constructor & Destructor Documentation

◆ mem_elastic_allocator()

ojph::mem_elastic_allocator::mem_elastic_allocator ( int  chunk_size)
inline

References cur_store, store, and total_allocated.

◆ ~mem_elastic_allocator()

ojph::mem_elastic_allocator::~mem_elastic_allocator ( )
inline

Member Function Documentation

◆ get_buffer()

void ojph::mem_elastic_allocator::get_buffer ( int  needed_bytes,
coded_lists *&  p 
)

Field Documentation

◆ chunk_size

const int ojph::mem_elastic_allocator::chunk_size
private

◆ cur_store

stores_list * ojph::mem_elastic_allocator::cur_store
private

Referenced by mem_elastic_allocator().

◆ store

stores_list* ojph::mem_elastic_allocator::store
private

◆ total_allocated

int ojph::mem_elastic_allocator::total_allocated
private

Referenced by mem_elastic_allocator().


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