The ChainCon Software (Release 0.03)
Classes | Functions
pair.h File Reference

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...
 

Detailed Description

A pair of elements.

Definition in file pair.h.

Function Documentation

◆ hashkey1()

template<class LeftT , class RightT >
int_t hashkey1 ( const tPair< LeftT, RightT > &  p)
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.

◆ hashkey2()

template<class LeftT , class RightT >
int_t hashkey2 ( const tPair< LeftT, RightT > &  p)
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.

◆ operator==()

template<class LeftT , class RightT >
bool operator== ( const tPair< LeftT, RightT > &  p1,
const tPair< LeftT, RightT > &  p2 
)
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.