Custom Query (545 matches)
Results (103 - 105 of 545)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#137 | fixed | Cheap copy of maps (reference counting) PHASE I. | ||
Description |
The idea is that the copy constructor and operator=() of a ListGraph::NodeMap<> &Co. would not effectively copy the map but instead it would use the container array of the source map. The storage would be deallocated when there are no maps pointing to it. Moreover, the default maps would have a copy() member function, which would effectively copy the contents, i.e.: ListDigraph::NodeMap<int> a(g); ListDigraph::NodeMap<int> b(a); /// a and b use the same storage a[e]=5 /// this also sets b[e] to 5. ... b.copy() /// b now have a separate storage a[e]=7 /// the value of b[e] does not change The advantage of this approach is that
However this approach is not fully compatible with the current implementation, therefore we must follow one of the tree approaches below.
P.S: It can also be a nice thing to do something similar with the graphs themselves. Fortunately, graph have no copy constructors and assignment operators, therefore in case of graphs the introduction of "cheap copy" is a clear enhancement and does not break the API compatibility. |
|||
#138 | fixed | Code checker hook script | ||
Description |
The [e7a4f5ef2250] contains a script to check code conformance, which can be used as commit hook in hg. It also contains a minor improvement in unify-sources script. |
|||
#140 | fixed | DijkstraWizard::processedMap() does not work |