Class Table.

Inherits TableBase

Table is a template class mapping integers to pointers.

Table can conveniently map integers, such as those used as unique keys in a database, to pointers to objects, such as those used in a cache, and automatically remembers lookup misses.

It can also provide a list of the lookup failures().


Creates an empty Table.

Reimplements TableBase::TableBase().

bool Table::contains( uint i )

Returns true if i is mapped to an object in the Table, and false otherwise.

T * Table::find( uint i )

Returns a pointer to the object that i is mapped to, or 0 if there is no such object.

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