Back to index

texmacs  1.0.7.15
Classes | Functions
ntuple.hpp File Reference
#include "basic.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pair< T1, T2 >
class  triple< T1, T2, T3 >
class  quartet< T1, T2, T3, T4 >
class  quintuple< T1, T2, T3, T4, T5 >

Functions

template<class T1 , class T2 >
int hash (const pair< T1, T2 > &p)
template<class T1 , class T2 >
tm_ostreamoperator<< (tm_ostream &out, const pair< T1, T2 > &p)
template<class T1 , class T2 , class T3 >
int hash (const triple< T1, T2, T3 > &t)
template<class T1 , class T2 , class T3 >
tm_ostreamoperator<< (tm_ostream &out, const triple< T1, T2, T3 > &t)
template<class T1 , class T2 , class T3 , class T4 >
int hash (const quartet< T1, T2, T3, T4 > &q)
template<class T1 , class T2 , class T3 , class T4 >
tm_ostreamoperator<< (tm_ostream &out, const quartet< T1, T2, T3, T4 > &q)
template<class T1 , class T2 , class T3 , class T4 , class T5 >
int hash (const quintuple< T1, T2, T3, T4, T5 > &q)
template<class T1 , class T2 , class T3 , class T4 , class T5 >
tm_ostreamoperator<< (tm_ostream &out, const quintuple< T1, T2, T3, T4, T5 > &q)

Function Documentation

template<class T1 , class T2 >
int hash ( const pair< T1, T2 > &  p)

Definition at line 28 of file ntuple.hpp.

                            {
  int h1= hash (p.x1);
  return (h1 << 11) ^ (h1 >> 21) ^ hash (p.x2); }

Here is the call graph for this function:

template<class T1 , class T2 , class T3 >
int hash ( const triple< T1, T2, T3 > &  t)

Definition at line 53 of file ntuple.hpp.

                                 {
  int h= hash (t.x1);
  h= (h << 11) ^ (h >> 21) ^ hash (t.x2);
  return (h << 11) ^ (h >> 21) ^ hash (t.x3); }

Here is the call graph for this function:

template<class T1 , class T2 , class T3 , class T4 >
int hash ( const quartet< T1, T2, T3, T4 > &  q)

Definition at line 79 of file ntuple.hpp.

                                     {
  int h= hash (q.x1);
  h= (h << 11) ^ (h >> 21) ^ hash (q.x2);
  h= (h << 11) ^ (h >> 21) ^ hash (q.x3);
  return (h << 11) ^ (h >> 21) ^ hash (q.x4); }

Here is the call graph for this function:

template<class T1 , class T2 , class T3 , class T4 , class T5 >
int hash ( const quintuple< T1, T2, T3, T4, T5 > &  q)

Definition at line 110 of file ntuple.hpp.

                                          {
  int h= hash (q.x1);
  h= (h << 11) ^ (h >> 21) ^ hash (q.x2);
  h= (h << 11) ^ (h >> 21) ^ hash (q.x3);
  h= (h << 11) ^ (h >> 21) ^ hash (q.x4);
  return (h << 11) ^ (h >> 21) ^ hash (q.x5); }

Here is the call graph for this function:

template<class T1 , class T2 >
tm_ostream& operator<< ( tm_ostream out,
const pair< T1, T2 > &  p 
) [inline]

Definition at line 33 of file ntuple.hpp.

                                                    {
  return out << "[ " << p.x1 << ", " << p.x2 << " ]"; }
template<class T1 , class T2 , class T3 >
tm_ostream& operator<< ( tm_ostream out,
const triple< T1, T2, T3 > &  t 
) [inline]

Definition at line 59 of file ntuple.hpp.

                                                         {
  return out << "[ " << t.x1 << ", " << t.x2 << ", " << t.x3 << " ]"; }
template<class T1 , class T2 , class T3 , class T4 >
tm_ostream& operator<< ( tm_ostream out,
const quartet< T1, T2, T3, T4 > &  q 
) [inline]

Definition at line 86 of file ntuple.hpp.

                                                             {
  return out << "[ " << q.x1 << ", " << q.x2
            << ", " << q.x3 << ", " << q.x4 << " ]"; }
template<class T1 , class T2 , class T3 , class T4 , class T5 >
tm_ostream& operator<< ( tm_ostream out,
const quintuple< T1, T2, T3, T4, T5 > &  q 
) [inline]

Definition at line 118 of file ntuple.hpp.

                                                                  {
  return out << "[ " << q.x1 << ", " << q.x2 << ", " << q.x3
            << ", " << q.x4 << ", " << q.x5 << " ]"; }