Table with two indexes for rows with a primary key and a foreign key. More...
#include <rdb/rdb.h>
Inherits RDB::SimpleTable< ROW, DIMS >.
Table with two indexes for rows with a primary key and a foreign key.
| ChildTable | ( | ) | [inline] |
Default constructor.
| void initParentIndex | ( | int | size, | |
| typename Base::KeyMethod | keyMethod | |||
| ) | [inline] |
Initialize the parent (foreign) index.
| size | Size of the hash table to use. | |
| keyMethod | Pointer to method returning the foreign key. |
| ForeignIndex<ROW> parentIndex | ( | ) | [inline] |
Return the foreign index.
| ForeignConstIndex<ROW> parentIndex | ( | ) | 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 removeChildren | ( | int | parentKey | ) | [inline] |
Remove all rows with the given foreign key.
1.7.1