Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 ~CoinModelHash2 ()
 Destructor. More...
Copy method
 CoinModelHash2 (const CoinModelHash2 &)
 The copy constructor. More...
CoinModelHash2operator= (const CoinModelHash2 &)
 = More...
sizing (just increases)
void resize (int maxItems, const CoinModelTriple *triples, bool forceReHash=false)
 Resize hash (also re-hashs) More...
int numberItems () const
 Number of items. More...
void setNumberItems (int number)
 Set number of items. More...
int maximumItems () const
 Maximum number of items. More...

Private Attributes

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


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

Detailed Description

For int,int hashing.

Definition at line 253 of file CoinModelUseful.hpp.

Constructor & Destructor Documentation

CoinModelHash2::CoinModelHash2 ( )

Default constructor.

CoinModelHash2::~CoinModelHash2 ( )


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

Number of items.

Definition at line 277 of file CoinModelUseful.hpp.

void CoinModelHash2::setNumberItems ( int  number)

Set number of items.

int CoinModelHash2::maximumItems ( ) const

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

Returns a hash value.

Member Data Documentation

CoinModelHashLink* CoinModelHash2::hash_


Definition at line 303 of file CoinModelUseful.hpp.

int CoinModelHash2::numberItems_

Number of items.

Definition at line 305 of file CoinModelUseful.hpp.

int CoinModelHash2::maximumItems_

Maximum number of items.

Definition at line 307 of file CoinModelUseful.hpp.

int CoinModelHash2::lastSlot_

Last slot looked at.

Definition at line 309 of file CoinModelUseful.hpp.

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