#include "oct-alloc.h"
Classes | |
struct | link |
Public Member Functions | |
octave_allocator (size_t item_sz, int grow_sz=256) | |
void * | alloc (size_t size) |
void | free (void *p, size_t size) |
Private Member Functions | |
bool | grow (void) |
Private Attributes | |
int | grow_size |
link * | head |
size_t | item_size |
Definition at line 28 of file oct-alloc.h.
octave_allocator::octave_allocator | ( | size_t | item_sz, | |
int | grow_sz = 256 | |||
) | [inline] |
Definition at line 34 of file oct-alloc.h.
void * octave_allocator::alloc | ( | size_t | size | ) |
Definition at line 32 of file oct-alloc.cc.
References grow(), head, item_size, and octave_allocator::link::next.
void octave_allocator::free | ( | void * | p, | |
size_t | size | |||
) |
Definition at line 52 of file oct-alloc.cc.
References head, item_size, and octave_allocator::link::next.
bool octave_allocator::grow | ( | void | ) | [private] |
int octave_allocator::grow_size [private] |
Definition at line 55 of file oct-alloc.h.
Referenced by grow().
link* octave_allocator::head [private] |
Definition at line 52 of file oct-alloc.h.
size_t octave_allocator::item_size [private] |
Definition at line 59 of file oct-alloc.h.