31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C& p.third( ) returns the C-component of p. If p is a const-object the<br />

return type is C.<br />

template <br />

bool const three tuple& p == const three tuple& q<br />

equality test for three tuples. Each of the component<br />

types must have an equality operator.<br />

template <br />

int compare(const three tuple& p, const three tuple& q)<br />

template <br />

int Hash(const three tuple& p)<br />

5. Implementation<br />

<strong>The</strong> obvious implementation is used.<br />

lexicographic ordering for three tuples. Each of the component<br />

types must have a compare function.<br />

hash function for three tuples. Each of the component<br />

types must have a Hash function.<br />

4.20 Four Tuples ( four tuple )<br />

1. Definition<br />

An instance p of type four tuple is a four-tuple (a, b, c, d) of variables of types<br />

A, B, C, and D, respectively.<br />

Related types are two tuple, three tuple, and four tuple.<br />

#include < <strong>LEDA</strong>/core/tuple.h ><br />

2. Types<br />

four tuple:: first type<br />

four tuple:: second type<br />

four tuple:: third type<br />

four tuple:: fourth type<br />

the type of the first component.<br />

the type of the second component.<br />

the type of the third component.<br />

the type of the fourth component.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!