Class MapTable.

Inherits Garbage

The MapTable class is a helper for Map.

Map is meant to be fully inlined, as all good templates are, so it uses the small array class MapTable to do its work.

MapTable implements a wide fixed-depth tree; see Map.

MapTable::MapTable()

Creates an empty MapTable.

Reimplements Garbage::Garbage().

void MapTable::clear()

Removes every item from the map table. Bang.

uint MapTable::count( uint l ) const

Returns the number of elements in the map. l is the map level; it is 0 for the leaf table and nonzero for all intermediate tables in the tree.

void * MapTable::find( uint i )

Finds i in this MapTable.

void MapTable::insert( uint i, void * r )

Inserts r at index i into this MapTable.

This web page based on source code belonging to Oryx Mail Systems GmbH. All rights reserved.