Table with one index for rows with a single primary key. More...
#include <rdb/rdb.h>
Inherits RDB::TableBase< ROW, DIMS >.
Inherited by ChildTable< ROW, DIMS >.
Table with one index for rows with a single primary key.
SimpleTable | ( | ) | [inline] |
Default constructor.
void initIndex | ( | int | size, | |
typename Base::KeyMethod | keyMethod | |||
) | [inline] |
Initialize the primary index.
size | Size of the hash table to use. | |
keyMethod | Pointer to method returning the primary key. |
UniqueIndex<ROW> index | ( | ) | [inline] |
Return the primary index.
UniqueConstIndex<ROW> index | ( | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
ROW* find | ( | int | key | ) | [inline] |
Find the row with the given primary key.
const ROW* find | ( | int | key | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void remove | ( | int | key | ) | [inline] |
Remove the row with the given primary key.