Clp trunk
Classes
ClpHashValue Class Reference

#include <ClpNode.hpp>

Collaboration diagram for ClpHashValue:

List of all members.

Classes

struct  CoinHashLink
 Data. More...

Public Member Functions

Useful methods
int index (double value) const
 Return index or -1 if not found.
int addValue (double value)
 Add value to list and return index.
int numberEntries () const
 Number of different entries.
Constructors, destructor
 ClpHashValue ()
 Default constructor.
 ClpHashValue (ClpSimplex *model)
 Useful constructor.
virtual ~ClpHashValue ()
 Destructor.
Copy method
 ClpHashValue (const ClpHashValue &)
 The copy constructor.
ClpHashValueoperator= (const ClpHashValue &)
 =

Protected Attributes

Data members

The data members are protected to allow access for derived classes.

CoinHashLinkhash_
 Hash table.
int numberHash_
 Number of entries in hash table.
int maxHash_
 Maximum number of entries in hash table i.e. size.
int lastUsed_
 Last used space.

Detailed Description

Definition at line 278 of file ClpNode.hpp.


Constructor & Destructor Documentation

ClpHashValue::ClpHashValue ( )

Default constructor.

ClpHashValue::ClpHashValue ( ClpSimplex model)

Useful constructor.

virtual ClpHashValue::~ClpHashValue ( ) [virtual]

Destructor.

ClpHashValue::ClpHashValue ( const ClpHashValue )

The copy constructor.


Member Function Documentation

int ClpHashValue::index ( double  value) const

Return index or -1 if not found.

int ClpHashValue::addValue ( double  value)

Add value to list and return index.

int ClpHashValue::numberEntries ( ) const [inline]

Number of different entries.

Definition at line 288 of file ClpNode.hpp.

ClpHashValue& ClpHashValue::operator= ( const ClpHashValue )

=


Member Data Documentation

CoinHashLink* ClpHashValue::hash_ [mutable, protected]

Hash table.

Definition at line 330 of file ClpNode.hpp.

int ClpHashValue::numberHash_ [protected]

Number of entries in hash table.

Definition at line 332 of file ClpNode.hpp.

int ClpHashValue::maxHash_ [protected]

Maximum number of entries in hash table i.e. size.

Definition at line 334 of file ClpNode.hpp.

int ClpHashValue::lastUsed_ [protected]

Last used space.

Definition at line 336 of file ClpNode.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines