CoinModelHash

CoinModelHash class documentation

Public Methods

CoinModelHash

Default constructor.

 CoinModelHash()

~CoinModelHash

Destructor.

 ~CoinModelHash()

CoinModelHash

The copy constructor.

 CoinModelHash(const CoinModelHash & )

Parameters:

operator=

=

CoinModelHash & operator=(const CoinModelHash & )

Parameters:

resize

Resize hash (also re-hashs)

void resize(int maxItems, bool forceReHash = false)

Parameters:

numberItems

Number of items i.e. rows if just row names.

int numberItems()

setNumberItems

Set number of items.

void setNumberItems(int number)

Parameters:

maximumItems

Maximum number of items.

int maximumItems()

names

Names.

const char *const * names()

hash

Returns index or -1.

int hash(const char * name)

Parameters:

addHash

Adds to hash.

void addHash(int index, const char * name)

Parameters:

deleteHash

Deletes from hash.

void deleteHash(int index)

Parameters:

name

Returns name at position (or NULL)

const char * name(int which)

Parameters:

getName

Returns non const name at position (or NULL)

char * getName(int which)

Parameters:

setName

Sets name at position (does not create)

void setName(int which, char * name)

Parameters:

validateHash

Validates.

void validateHash()

Source

Header: layer-0/CoinUtils/src/CoinModelUseful.hpp