CoinUtils 2.11.4
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CoinMempool Class Reference

#include <CoinAlloc.hpp>

+ Collaboration diagram for CoinMempool:

Public Member Functions

 CoinMempool (std::size_t size=0)
 
 ~CoinMempool ()
 
char * alloc ()
 
void dealloc (char *p)
 

Private Member Functions

 CoinMempool (const CoinMempool &)
 
CoinMempooloperator= (const CoinMempool &)
 
char * allocate_new_block ()
 
void lock_mutex ()
 
void unlock_mutex ()
 

Private Attributes

int last_block_size_
 
char * first_free_
 
const std::size_t entry_size_
 

Detailed Description

Definition at line 51 of file CoinAlloc.hpp.

Constructor & Destructor Documentation

◆ CoinMempool() [1/2]

CoinMempool::CoinMempool ( const CoinMempool )
private

◆ CoinMempool() [2/2]

CoinMempool::CoinMempool ( std::size_t  size = 0)

◆ ~CoinMempool()

CoinMempool::~CoinMempool ( )

Member Function Documentation

◆ operator=()

CoinMempool & CoinMempool::operator= ( const CoinMempool )
private

◆ allocate_new_block()

char * CoinMempool::allocate_new_block ( )
private

◆ lock_mutex()

void CoinMempool::lock_mutex ( )
inlineprivate

Definition at line 71 of file CoinAlloc.hpp.

◆ unlock_mutex()

void CoinMempool::unlock_mutex ( )
inlineprivate

Definition at line 77 of file CoinAlloc.hpp.

◆ alloc()

char * CoinMempool::alloc ( )

◆ dealloc()

void CoinMempool::dealloc ( char *  p)
inline

Definition at line 89 of file CoinAlloc.hpp.

Member Data Documentation

◆ last_block_size_

int CoinMempool::last_block_size_
private

Definition at line 61 of file CoinAlloc.hpp.

◆ first_free_

char* CoinMempool::first_free_
private

Definition at line 62 of file CoinAlloc.hpp.

◆ entry_size_

const std::size_t CoinMempool::entry_size_
private

Definition at line 63 of file CoinAlloc.hpp.


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