Cgl 0.60.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | List of all members
ClpHashValue Class Reference

`#include <ClpNode.hpp>`

Collaboration diagram for ClpHashValue:
[legend]

## Classes
struct | CoinHashLink
| Data. More...

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

## Protected Attributes
Data members
The data members are protected to allow access for derived classes.
CoinHashLink * | hash_
| Hash table. More...
int | numberHash_
| Number of entries in hash table. More...
int | maxHash_
| Maximum number of entries in hash table i.e. size. More...
int | lastUsed_
| Last used space. More...

## Private Member Functions
private stuff
int | hash (double value) const
| returns hash More...
void | resize (bool increaseMax)
| Resizes. More...

## Detailed Description

Definition at line 299 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 309 of file ClpNode.hpp.

ClpHashValue& ClpHashValue::operator= | ( | const ClpHashValue & |  | ) |

=

int ClpHashValue::hash | ( | double | value | ) | const
| private

returns hash

void ClpHashValue::resize | ( | bool | increaseMax | ) |
| private

Resizes.

## Member Data Documentation

CoinHashLink* ClpHashValue::hash_
| mutable protected

Hash table.

Definition at line 352 of file ClpNode.hpp.

int ClpHashValue::numberHash_
| protected

Number of entries in hash table.

Definition at line 354 of file ClpNode.hpp.

int ClpHashValue::maxHash_
| protected

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

Definition at line 356 of file ClpNode.hpp.

int ClpHashValue::lastUsed_
| protected

Last used space.

Definition at line 358 of file ClpNode.hpp.

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

- /tmp/Cgl-0.60.2/Clp/src/ClpNode.hpp