Dip
0.92.4
|
For int,int hashing. More...
#include <CoinModelUseful.hpp>
Public Member Functions | |
Constructors, destructor | |
CoinModelHash2 () | |
Default constructor. More... | |
~CoinModelHash2 () | |
Destructor. More... | |
Copy method | |
CoinModelHash2 (const CoinModelHash2 &) | |
The copy constructor. More... | |
CoinModelHash2 & | operator= (const CoinModelHash2 &) |
= More... | |
sizing (just increases) | |
void | resize (CoinBigIndex maxItems, const CoinModelTriple *triples, bool forceReHash=false) |
Resize hash (also re-hashs) More... | |
CoinBigIndex | numberItems () const |
Number of items. More... | |
void | setNumberItems (CoinBigIndex number) |
Set number of items. More... | |
CoinBigIndex | maximumItems () const |
Maximum number of items. More... | |
Private Attributes | |
Data members | |
CoinModelHashLink2 * | hash_ |
hash More... | |
CoinBigIndex | numberItems_ |
Number of items. More... | |
CoinBigIndex | maximumItems_ |
Maximum number of items. More... | |
CoinBigIndex | lastSlot_ |
Last slot looked at. More... | |
hashing | |
CoinBigIndex | hash (int row, int column, const CoinModelTriple *triples) const |
Returns index or -1. More... | |
void | addHash (CoinBigIndex index, int row, int column, const CoinModelTriple *triples) |
Adds to hash. More... | |
void | deleteHash (CoinBigIndex index, int row, int column) |
Deletes from hash. More... | |
CoinBigIndex | hashValue (int row, int column) const |
Returns a hash value. More... | |
For int,int hashing.
Definition at line 301 of file CoinModelUseful.hpp.
CoinModelHash2::CoinModelHash2 | ( | ) |
Default constructor.
CoinModelHash2::~CoinModelHash2 | ( | ) |
Destructor.
CoinModelHash2::CoinModelHash2 | ( | const CoinModelHash2 & | ) |
The copy constructor.
CoinModelHash2& CoinModelHash2::operator= | ( | const CoinModelHash2 & | ) |
=
void CoinModelHash2::resize | ( | CoinBigIndex | maxItems, |
const CoinModelTriple * | triples, | ||
bool | forceReHash = false |
||
) |
Resize hash (also re-hashs)
|
inline |
void CoinModelHash2::setNumberItems | ( | CoinBigIndex | number | ) |
Set number of items.
|
inline |
Maximum number of items.
Definition at line 332 of file CoinModelUseful.hpp.
References maximumItems_.
CoinBigIndex CoinModelHash2::hash | ( | int | row, |
int | column, | ||
const CoinModelTriple * | triples | ||
) | const |
Returns index or -1.
void CoinModelHash2::addHash | ( | CoinBigIndex | index, |
int | row, | ||
int | column, | ||
const CoinModelTriple * | triples | ||
) |
Adds to hash.
void CoinModelHash2::deleteHash | ( | CoinBigIndex | index, |
int | row, | ||
int | column | ||
) |
Deletes from hash.
|
private |
Returns a hash value.
|
private |
hash
Definition at line 357 of file CoinModelUseful.hpp.
|
private |
|
private |
Maximum number of items.
Definition at line 361 of file CoinModelUseful.hpp.
Referenced by maximumItems().
|
private |
Last slot looked at.
Definition at line 363 of file CoinModelUseful.hpp.