https://svn.lrde.epita.fr/svn/oln/trunk/milena
When altering something as central as a graph class, please pay attention
to all client code using it! Thanks in advance.
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Fix mesh_image w.r.t. the recently updated interface of graphs.
* mln/core/mesh_image.hh:
(mesh_image<P, V>::access_location_link_node1 (const unsigned&))
(mesh_image<P, V>::access_location_link_node2 (const unsigned&)):
Catch up with the new interface of mln::util::s_edge.
mesh_image.hh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Index: mln/core/mesh_image.hh
--- mln/core/mesh_image.hh (revision 1702)
+++ mln/core/mesh_image.hh (working copy)
@@ -212,7 +212,7 @@
previous content pointed by data_.
We should definitely write down formal guidelines on
- initializaion and memory management in general! */
+ initialization and memory management in general! */
this->data_ = new internal::data_< mesh_image<P, V> > (mesh, val);
}
@@ -270,7 +270,8 @@
const P&
mesh_image<P, V>::access_location_link_node1 (const unsigned& i) const
{
- return this->domain().loc_[this->domain().gr_.links_[i]->node1];
+ // FIXME: This is ugly! Too much implementation details are shown here.
+ return this->domain().loc_[this->domain().gr_.links_[i]->pair_node_.first];
}
template <typename P, typename V>
@@ -278,7 +279,8 @@
const P&
mesh_image<P, V>::access_location_link_node2 (const unsigned& i) const
{
- return this->domain().loc_[this->domain().gr_.links_[i]->node2];
+ // FIXME: This is ugly! Too much implementation details are shown here.
+ return
this->domain().loc_[this->domain().gr_.links_[i]->pair_node_.second];
}
# endif // ! MLN_INCLUDE_ONLY