|
Osi
0.108.1
|
#include <CoinModelUseful.hpp>
Collaboration diagram for CoinModelHash:Public Member Functions | |
Constructors, destructor | |
| CoinModelHash () | |
| Default constructor. More... | |
| ~CoinModelHash () | |
| Destructor. More... | |
Copy method | |
| CoinModelHash (const CoinModelHash &) | |
| The copy constructor. More... | |
| CoinModelHash & | operator= (const CoinModelHash &) |
| = More... | |
sizing (just increases) | |
| void | resize (int maxItems, bool forceReHash=false) |
| Resize hash (also re-hashs) More... | |
| int | numberItems () const |
| Number of items i.e. rows if just row names. More... | |
| void | setNumberItems (int number) |
| Set number of items. More... | |
| int | maximumItems () const |
| Maximum number of items. More... | |
| const char *const * | names () const |
| Names. More... | |
Private Attributes | |
Data members | |
| char ** | names_ |
| Names. More... | |
| CoinModelHashLink * | hash_ |
| hash More... | |
| int | numberItems_ |
| Number of items. More... | |
| int | maximumItems_ |
| Maximum number of items. More... | |
| int | lastSlot_ |
| Last slot looked at. More... | |
hashing | |
| int | hash (const char *name) const |
| Returns index or -1. More... | |
| void | addHash (int index, const char *name) |
| Adds to hash. More... | |
| void | deleteHash (int index) |
| Deletes from hash. More... | |
| const char * | name (int which) const |
| Returns name at position (or NULL) More... | |
| char * | getName (int which) const |
| Returns non const name at position (or NULL) More... | |
| void | setName (int which, char *name) |
| Sets name at position (does not create) More... | |
| void | validateHash () const |
| Validates. More... | |
| int | hashValue (const char *name) const |
| Returns a hash value. More... | |
Definition at line 220 of file CoinModelUseful.hpp.
| CoinModelHash::CoinModelHash | ( | ) |
Default constructor.
| CoinModelHash::~CoinModelHash | ( | ) |
Destructor.
| CoinModelHash::CoinModelHash | ( | const CoinModelHash & | ) |
The copy constructor.
| CoinModelHash& CoinModelHash::operator= | ( | const CoinModelHash & | ) |
=
| void CoinModelHash::resize | ( | int | maxItems, |
| bool | forceReHash = false |
||
| ) |
Resize hash (also re-hashs)
|
inline |
Number of items i.e. rows if just row names.
Definition at line 244 of file CoinModelUseful.hpp.
| void CoinModelHash::setNumberItems | ( | int | number | ) |
Set number of items.
|
inline |
Maximum number of items.
Definition at line 251 of file CoinModelUseful.hpp.
|
inline |
Names.
Definition at line 256 of file CoinModelUseful.hpp.
| int CoinModelHash::hash | ( | const char * | name | ) | const |
Returns index or -1.
| void CoinModelHash::addHash | ( | int | index, |
| const char * | name | ||
| ) |
Adds to hash.
| void CoinModelHash::deleteHash | ( | int | index | ) |
Deletes from hash.
| const char* CoinModelHash::name | ( | int | which | ) | const |
Returns name at position (or NULL)
| char* CoinModelHash::getName | ( | int | which | ) | const |
Returns non const name at position (or NULL)
| void CoinModelHash::setName | ( | int | which, |
| char * | name | ||
| ) |
Sets name at position (does not create)
| void CoinModelHash::validateHash | ( | ) | const |
Validates.
|
private |
Returns a hash value.
|
private |
Names.
Definition at line 289 of file CoinModelUseful.hpp.
|
private |
hash
Definition at line 291 of file CoinModelUseful.hpp.
|
private |
Number of items.
Definition at line 293 of file CoinModelUseful.hpp.
|
private |
Maximum number of items.
Definition at line 295 of file CoinModelUseful.hpp.
|
private |
Last slot looked at.
Definition at line 297 of file CoinModelUseful.hpp.
1.8.5