sc_core::sc_allocator Class Reference

List of all members.

Public Member Functions

 sc_allocator (int blksz, int cellsz)
 ~sc_allocator ()
void * allocate ()
void release (void *p)
void display_statistics ()

Private Attributes

int block_size
int cell_size
char * block_list
linkfree_list
char * next_avail
int total_alloc
int total_freed
int free_list_alloc

Friends

class sc_mempool

Classes

union  link

Constructor & Destructor Documentation

sc_core::sc_allocator::sc_allocator ( int  blksz,
int  cellsz 
)

sc_core::sc_allocator::~sc_allocator (  ) 


Member Function Documentation

void * sc_core::sc_allocator::allocate (  ) 

void sc_core::sc_allocator::release ( void *  p  ) 

void sc_core::sc_allocator::display_statistics (  ) 


Friends And Related Function Documentation

friend class sc_mempool [friend]


Member Data Documentation

int sc_core::sc_allocator::block_size [private]

int sc_core::sc_allocator::cell_size [private]

char* sc_core::sc_allocator::block_list [private]

link* sc_core::sc_allocator::free_list [private]

char* sc_core::sc_allocator::next_avail [private]

int sc_core::sc_allocator::total_alloc [private]

int sc_core::sc_allocator::total_freed [private]

int sc_core::sc_allocator::free_list_alloc [private]


The documentation for this class was generated from the following file:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page