The ChainCon Software (Release 0.03)
|
A pair of elements. More...
#include <istream>
#include <ostream>
#include <algorithm>
#include <vector>
#include "chomp/system/config.h"
Go to the source code of this file.
Classes | |
class | tPair< LeftT, RightT > |
A pair of elements of two (possibly different) types. More... | |
Functions | |
template<class LeftT , class RightT > | |
int_t | hashkey1 (const tPair< LeftT, RightT > &p) |
Generates a hashing key no. More... | |
template<class LeftT , class RightT > | |
int_t | hashkey2 (const tPair< LeftT, RightT > &p) |
Generates a hashing key no. More... | |
template<class LeftT , class RightT > | |
bool | operator== (const tPair< LeftT, RightT > &p1, const tPair< LeftT, RightT > &p2) |
Operator == for checking whether two pairs are equal. More... | |
A pair of elements.
Definition in file pair.h.
|
inline |
Generates a hashing key no.
1 for a general pair of elements, based on hashing keys of the elements. This key is to be used in a hashed set.
Definition at line 72 of file pair.h.
References tPair< LeftT, RightT >::left, and tPair< LeftT, RightT >::right.
|
inline |
Generates a hashing key no.
2 for a general pair of elements, based on hashing keys of the elements. This key is to be used in a hashed set.
Definition at line 81 of file pair.h.
References tPair< LeftT, RightT >::left, and tPair< LeftT, RightT >::right.
|
inline |
Operator == for checking whether two pairs are equal.
Definition at line 88 of file pair.h.
References tPair< LeftT, RightT >::left, and tPair< LeftT, RightT >::right.