ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
BlockStore.h

The store of blocks of section 14.1 of Morin's book, beyond the book. More...

Files

file  ADS/external/BlockStore.h
 The store of blocks of section 14.1 of Morin's book, beyond the book: a disk simulated in memory, an array of blocks of type T addressed by their index, on which readBlock( i ) and writeBlock( i , b ) are the I/Os of the external memory model [see TwoLevelMemory.h], counted one each; placeBlock( b ) writes a new block where a block freed by freeBlock( i ) was, or at the end, so that the indices of the blocks in use stay below their largest number.

Classes

class  ADS::BlockStore< T >
 a disk of blocks of type T, read and written one at a time More...

Detailed description

The store of blocks of section 14.1 of Morin's book, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of external memory.