* Share locations from an existing SolutionArray and return new reference. * * Both SolutionArray object share common data. The method is used for slicing * of SolutionArrays from high-level API's. Note that meta data are not inherited. * @param selected List of locations for shared entries */
| 63 | * @param selected List of locations for shared entries |
| 64 | */ |
| 65 | shared_ptr<SolutionArray> share(const vector<int>& selected) |
| 66 | { |
| 67 | return shared_ptr<SolutionArray>(new SolutionArray(*this, selected)); |
| 68 | } |
| 69 | |
| 70 | //! Reset all entries of the SolutionArray to the current Solution state |
| 71 | void reset(); |