CoinModelHash2
For int,int hashing.
For int,int hashing.
Public Methods
CoinModelHash2
Default constructor.
CoinModelHash2()
~CoinModelHash2
Destructor.
~CoinModelHash2()
CoinModelHash2
The copy constructor.
CoinModelHash2(const CoinModelHash2 & )
Parameters:
- `` (const CoinModelHash2 &)
operator=
=
CoinModelHash2 & operator=(const CoinModelHash2 & )
Parameters:
- `` (const CoinModelHash2 &)
resize
Resize hash (also re-hashs)
void resize(CoinBigIndex maxItems, const CoinModelTriple * triples, bool forceReHash = false)
Parameters:
maxItems(CoinBigIndex)triples(const CoinModelTriple *)forceReHash(bool)
numberItems
Number of items.
CoinBigIndex numberItems()
setNumberItems
Set number of items.
void setNumberItems(CoinBigIndex number)
Parameters:
number(CoinBigIndex)
maximumItems
Maximum number of items.
CoinBigIndex maximumItems()
hash
Returns index or -1.
CoinBigIndex hash(int row, int column, const CoinModelTriple * triples)
Parameters:
row(int)column(int)triples(const CoinModelTriple *)
addHash
Adds to hash.
void addHash(CoinBigIndex index, int row, int column, const CoinModelTriple * triples)
Parameters:
index(CoinBigIndex)row(int)column(int)triples(const CoinModelTriple *)
deleteHash
Deletes from hash.
void deleteHash(CoinBigIndex index, int row, int column)
Parameters:
index(CoinBigIndex)row(int)column(int)
Source
Header: layer-0/CoinUtils/src/CoinModelUseful.hpp