LocalSolver logo
is now
Hexaly logo

We're excited to share that we are moving forward. We're leaving behind the LocalSolver brand and transitioning to our new identity: Hexaly. This represents a leap forward in our mission to enable every organization to make better decisions faster when faced with operational and strategic challenges.

This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the latest stable release.

LSPMapIterator Class

class

An iterator referencing the contents of an LSPMap.

See:LSPMap
Since:10.0

Summary

Functions
next Advances the iterator to the next element of the map.
getKey Returns the current key in the iteration.
getValue Returns the current value in the iteration.

Functions

bool localsolver::modeler::LSPMapIterator::next()

Advances the iterator to the next element of the map.

Returns true if the iterator was successfully advanced and false if the iterator has passed the end of the map.

LSPValue localsolver::modeler::LSPMapIterator::getKey()
const

Returns the current key in the iteration.

This method returns nil if the iterator is positionned before the first element in the map. next() must be called to advance the iterator to the first element of the map before calling this method.

LSPValue localsolver::modeler::LSPMapIterator::getValue()
const

Returns the current value in the iteration.

This method returns nil if the iterator is positionned before the first element in the map. next() must be called to advance the iterator to the first element of the map before calling this method.