CoinUtils 2.11.10
Loading...
Searching...
No Matches
List of all members
CoinModelHash2 Class Reference

For int,int hashing. More...

#include <CoinModelUseful.hpp>

+ Collaboration diagram for CoinModelHash2:

Public Member Functions

Constructors, destructor
 CoinModelHash2 ()
 Default constructor.
 
 ~CoinModelHash2 ()
 Destructor.
 
Copy method
 CoinModelHash2 (const CoinModelHash2 &)
 The copy constructor.
 
CoinModelHash2operator= (const CoinModelHash2 &)
 =
 
sizing (just increases)
void resize (CoinBigIndex maxItems, const CoinModelTriple *triples, bool forceReHash=false)
 Resize hash (also re-hashs)
 
CoinBigIndex numberItems () const
 Number of items.
 
void setNumberItems (CoinBigIndex number)
 Set number of items.
 
CoinBigIndex maximumItems () const
 Maximum number of items.
 

Private Attributes

Data members
CoinModelHashLink2hash_
 hash
 
CoinBigIndex numberItems_
 Number of items.
 
CoinBigIndex maximumItems_
 Maximum number of items.
 
CoinBigIndex lastSlot_
 Last slot looked at.
 

hashing

CoinBigIndex hash (int row, int column, const CoinModelTriple *triples) const
 Returns index or -1.
 
void addHash (CoinBigIndex index, int row, int column, const CoinModelTriple *triples)
 Adds to hash.
 
void deleteHash (CoinBigIndex index, int row, int column)
 Deletes from hash.
 
CoinBigIndex hashValue (int row, int column) const
 Returns a hash value.
 

Detailed Description

For int,int hashing.

Definition at line 301 of file CoinModelUseful.hpp.

Constructor & Destructor Documentation

◆ CoinModelHash2() [1/2]

CoinModelHash2::CoinModelHash2 ( )

Default constructor.

◆ ~CoinModelHash2()

CoinModelHash2::~CoinModelHash2 ( )

Destructor.

◆ CoinModelHash2() [2/2]

CoinModelHash2::CoinModelHash2 ( const CoinModelHash2 & )

The copy constructor.

Member Function Documentation

◆ operator=()

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

=

◆ resize()

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

Resize hash (also re-hashs)

◆ numberItems()

CoinBigIndex CoinModelHash2::numberItems ( ) const
inline

Number of items.

Definition at line 325 of file CoinModelUseful.hpp.

◆ setNumberItems()

void CoinModelHash2::setNumberItems ( CoinBigIndex number)

Set number of items.

◆ maximumItems()

CoinBigIndex CoinModelHash2::maximumItems ( ) const
inline

Maximum number of items.

Definition at line 332 of file CoinModelUseful.hpp.

◆ hash()

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

Returns index or -1.

◆ addHash()

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

Adds to hash.

◆ deleteHash()

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

Deletes from hash.

◆ hashValue()

CoinBigIndex CoinModelHash2::hashValue ( int row,
int column ) const
private

Returns a hash value.

Member Data Documentation

◆ hash_

CoinModelHashLink2* CoinModelHash2::hash_
private

hash

Definition at line 357 of file CoinModelUseful.hpp.

◆ numberItems_

CoinBigIndex CoinModelHash2::numberItems_
private

Number of items.

Definition at line 359 of file CoinModelUseful.hpp.

◆ maximumItems_

CoinBigIndex CoinModelHash2::maximumItems_
private

Maximum number of items.

Definition at line 361 of file CoinModelUseful.hpp.

◆ lastSlot_

CoinBigIndex CoinModelHash2::lastSlot_
private

Last slot looked at.

Definition at line 363 of file CoinModelUseful.hpp.


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