# CoinModelHash2 Class Reference

For int,int hashing. More...

`#include <CoinModelUseful.hpp>`

Collaboration diagram for CoinModelHash2:
[legend]

List of all members.

## Public Member Functions
Constructors, destructor
| CoinModelHash2 ()
| Default constructor.
| ~CoinModelHash2 ()
| Destructor.
Copy method
| CoinModelHash2 (const CoinModelHash2 &)
| The copy constructor.
CoinModelHash2 & | operator= (const CoinModelHash2 &)
| =
sizing (just increases)
void | resize (int maxItems, const CoinModelTriple *triples, bool forceReHash=false)
| Resize hash (also re-hashs).
int | numberItems () const
| Number of items.
void | setNumberItems (int number)
| Set number of items.
int | maximumItems () const
| Maximum number of items.
## Private Attributes
Data members
CoinModelHashLink * | hash_
| hash
int | numberItems_
| Number of items.
int | maximumItems_
| Maximum number of items.
int | lastSlot_
| Last slot looked at.
## hashing
int | hash (int row, int column, const CoinModelTriple *triples) const
| Returns index or -1.
void | addHash (int index, int row, int column, const CoinModelTriple *triples)
| Adds to hash.
void | deleteHash (int index, int row, int column)
| Deletes from hash.
int | hashValue (int row, int column) const
| Returns a hash value.

## Detailed Description

For int,int hashing.

Definition at line 253 of file CoinModelUseful.hpp.

## Constructor & Destructor Documentation

CoinModelHash2::CoinModelHash2 | ( |  | ) |

Default constructor.

CoinModelHash2::~CoinModelHash2 | ( |  | ) |

Destructor.

CoinModelHash2::CoinModelHash2 | ( | const CoinModelHash2 & |  | ) |

The copy constructor.

## Member Function Documentation

CoinModelHash2& CoinModelHash2::operator= | ( | const CoinModelHash2 & |  | ) |

=

void CoinModelHash2::resize | ( | int | maxItems,
|  | const CoinModelTriple * | triples,
|  | bool | forceReHash = `false` |
| ) |  |  |

Resize hash (also re-hashs).

int CoinModelHash2::numberItems | ( |  | ) | const`[inline]`

Number of items.

Definition at line 277 of file CoinModelUseful.hpp.

void CoinModelHash2::setNumberItems | ( | int | number | ) |

Set number of items.

int CoinModelHash2::maximumItems | ( |  | ) | const`[inline]`

Maximum number of items.

Definition at line 282 of file CoinModelUseful.hpp.

int CoinModelHash2::hash | ( | int | row,
|  | int | column,
|  | const CoinModelTriple * | triples |
| ) |  |  | const

Returns index or -1.

void CoinModelHash2::addHash | ( | int | index,
|  | int | row,
|  | int | column,
|  | const CoinModelTriple * | triples |
| ) |  |  |

Adds to hash.

void CoinModelHash2::deleteHash | ( | int | index,
|  | int | row,
|  | int | column |
| ) |  |  |

Deletes from hash.

int CoinModelHash2::hashValue | ( | int | row,
|  | int | column |
| ) |  |  | const`[private]`

Returns a hash value.

## Member Data Documentation

CoinModelHashLink* CoinModelHash2::hash_`[private]`

hash

Definition at line 303 of file CoinModelUseful.hpp.

int CoinModelHash2::numberItems_`[private]`

Number of items.

Definition at line 305 of file CoinModelUseful.hpp.

int CoinModelHash2::maximumItems_`[private]`

Maximum number of items.

Definition at line 307 of file CoinModelUseful.hpp.

int CoinModelHash2::lastSlot_`[private]`

Last slot looked at.

Definition at line 309 of file CoinModelUseful.hpp.

The documentation for this class was generated from the following file:

- /home/coin/svn-release/CoinUtils-2.9.4/CoinUtils/src/CoinModelUseful.hpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines