
#include <memory_temporal.h>

Public Member Functions | |
| SuperBlock () | |
| ~SuperBlock () | |
| void | initBlock () |
| Allocate and set initial values. | |
| void | resetBlock () |
| bool | noLongerReferenced () |
| char * | sb_alloc (int sz) |
| return pos, and advance pos by sz, aligned to 16 bytes, inc refCount | |
| bool | sb_free (void *mem) |
| SuperBlock * | getNextBlock () |
| void | setNextBlock (SuperBlock *loc) |
| int | getPercentFull () |
| void | sanity_check () |
Private Attributes | |
| int | refCount |
| char * | blk |
| char * | pos |
| int | percent_full |
| SuperBlock * | nextBlock |
Definition at line 38 of file memory_temporal.h.
| SuperBlock::SuperBlock | ( | ) | [inline] |
Definition at line 46 of file memory_temporal.h.
| SuperBlock::~SuperBlock | ( | ) | [inline] |
| void SuperBlock::initBlock | ( | ) | [inline] |
Allocate and set initial values.
Definition at line 49 of file memory_temporal.h.
References blk, malloc(), nextBlock, percent_full, pos, and refCount.
Referenced by TimeBucket::initBucket(), and TimeBucket::tb_alloc().


| void SuperBlock::resetBlock | ( | ) | [inline] |
Definition at line 56 of file memory_temporal.h.
References blk, nextBlock, percent_full, pos, and refCount.
Referenced by TimeBucket::initBucket(), and TimeBucket::tb_alloc().

| bool SuperBlock::noLongerReferenced | ( | ) | [inline] |
Definition at line 63 of file memory_temporal.h.
References refCount.
Referenced by TimePool::clean_up(), TimeBucket::sanity_check(), and TimeBucket::tb_free().

| char* SuperBlock::sb_alloc | ( | int | sz | ) | [inline] |
return pos, and advance pos by sz, aligned to 16 bytes, inc refCount
Definition at line 65 of file memory_temporal.h.
References blk, int, percent_full, pos, and refCount.
Referenced by TimeBucket::tb_alloc().

| bool SuperBlock::sb_free | ( | void * | mem | ) | [inline] |
Definition at line 88 of file memory_temporal.h.
References blk, pos, and refCount.
Referenced by TimeBucket::tb_free().

| SuperBlock* SuperBlock::getNextBlock | ( | ) | [inline] |
Definition at line 106 of file memory_temporal.h.
References nextBlock.
Referenced by TimePool::clean_up(), TimePool::empty_recycle_bin(), TimeBucket::initBucket(), TimeBucket::sanity_check(), TimeBucket::tb_alloc(), TimeBucket::tb_free(), and TimePool::~TimePool().

| void SuperBlock::setNextBlock | ( | SuperBlock * | loc | ) | [inline] |
Definition at line 107 of file memory_temporal.h.
References nextBlock.
Referenced by TimePool::clean_up(), and TimeBucket::tb_alloc().

| int SuperBlock::getPercentFull | ( | ) | [inline] |
Definition at line 108 of file memory_temporal.h.
References percent_full.
Referenced by TimeBucket::isVeryFull().

| void SuperBlock::sanity_check | ( | ) |
Definition at line 12 of file memory_temporal.C.
Referenced by TimeBucket::sanity_check().

int SuperBlock::refCount [private] |
Definition at line 39 of file memory_temporal.h.
Referenced by initBlock(), noLongerReferenced(), resetBlock(), sb_alloc(), and sb_free().
char* SuperBlock::blk [private] |
Definition at line 40 of file memory_temporal.h.
Referenced by initBlock(), resetBlock(), sb_alloc(), sb_free(), and ~SuperBlock().
char* SuperBlock::pos [private] |
Definition at line 41 of file memory_temporal.h.
Referenced by initBlock(), resetBlock(), sb_alloc(), and sb_free().
int SuperBlock::percent_full [private] |
Definition at line 42 of file memory_temporal.h.
Referenced by getPercentFull(), initBlock(), resetBlock(), and sb_alloc().
SuperBlock* SuperBlock::nextBlock [private] |
Definition at line 43 of file memory_temporal.h.
Referenced by getNextBlock(), initBlock(), resetBlock(), and setNextBlock().
1.5.5