Table for rows with two foreign keys which form a unique pair. More...
#include <rdb/rdb.h>
Inherits RDB::TableBase< ROW, DIMS >.
Table for rows with two foreign keys which form a unique pair.
| CrossTable | ( | ) | [inline] |
Default constructor.
| void initFirstIndex | ( | int | size, | |
| typename Base::KeyMethod | keyMethod | |||
| ) | [inline] |
Initialize the first foreign index.
| size | Size of the hash table to use. | |
| keyMethod | Pointer to method returning the first key. |
| void initSecondIndex | ( | int | size, | |
| typename Base::KeyMethod | keyMethod | |||
| ) | [inline] |
Initialize the second foreign index.
| size | Size of the hash table to use. | |
| keyMethod | Pointer to method returning the second key. |
| UniquePairIndex<ROW> index | ( | ) | [inline] |
Return the unique pair index.
| UniquePairConstIndex<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 | firstKey, | |
| int | secondKey | |||
| ) | [inline] |
Find the row with the given keys.
| const ROW* find | ( | int | firstKey, | |
| int | secondKey | |||
| ) | 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 | firstKey, | |
| int | secondKey | |||
| ) | [inline] |
Remove the row with the given keys.
| void removeFirst | ( | int | firstKey | ) | [inline] |
Remove the rows with the given value of the first key.
| void removeSecond | ( | int | secondKey | ) | [inline] |
Remove the rows with the given value of the second key.
1.7.1