Ticket #86 (closed: fixed)
Rework triple_iterator to be const correct
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 5 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
When using the current triple_iterator as a const_iterator it does not use const iterators underneath to access the workspace data. Thus the const versions of dataX. dataY etc. in the workspaces and in Histogram1D are never actually called.
Change History
comment:2 Changed 13 years ago by Russell Taylor
(In [659]) triple_iterator now uses const_iterators underneath and holds a const pointer to its workspace when it is used a const_iterator. Hence the workspace data is accessed via the const methods. You can now use const workspaces with the iterators, but there's still an issue with using the getProperty() method to assign to a const workspace. It boils down to there being no AnalysisDataService::addOrReplace method that takes a const workspace. Re #86.