BitMagic-C++
Static Public Member Functions | Static Public Attributes
dbg_block_allocator Class Reference

Static Public Member Functions

static bm::word_tallocate (size_t n, const void *)
 
static void deallocate (bm::word_t *p, size_t)
 
static int balance ()
 

Static Public Attributes

static unsigned na_ = 0
 
static unsigned nf_ = 0
 

Detailed Description

Examples:
sample6.cpp.

Definition at line 45 of file sample6.cpp.

Member Function Documentation

◆ allocate()

static bm::word_t* dbg_block_allocator::allocate ( size_t  n,
const void *   
)
inlinestatic

Definition at line 51 of file sample6.cpp.

◆ balance()

static int dbg_block_allocator::balance ( )
inlinestatic
Examples:
sample6.cpp.

Definition at line 68 of file sample6.cpp.

References na_, and nf_.

Referenced by main().

◆ deallocate()

static void dbg_block_allocator::deallocate ( bm::word_t p,
size_t   
)
inlinestatic

Definition at line 61 of file sample6.cpp.

Field Documentation

◆ na_

unsigned dbg_block_allocator::na_ = 0
static
Examples:
sample6.cpp.

Definition at line 48 of file sample6.cpp.

Referenced by balance(), and main().

◆ nf_

unsigned dbg_block_allocator::nf_ = 0
static
Examples:
sample6.cpp.

Definition at line 49 of file sample6.cpp.

Referenced by balance().


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