Skip to content
Snippets Groups Projects
Commit 02f25600 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

use StringKey for Alg name, add IAlgorithm::setIndex

this patch does 3 things:

- makes Algorithm::index() const (as it should have been), set the initial value to 0 instead of 123 (!)
- adds a protected Algorithm::setIndex(unsigned int) method. this allows you to distinguish between clones. AlgResourcePool is the one who does the setting, and is declared as a friend to IAlgorithm
- turns Algorithm::m_name into a StringKey (from a string), so we can hash on the name of Algorithms more easily (a useful ability when dealing with Alg clones, and trying to treat them all the same way)

See merge request !125
parents 2de92903 63cf6a16
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment